Skip to content

Commit

Permalink
TOC links not working on all pages #814
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaywali committed Sep 20, 2024
1 parent 2d72b4a commit 6f92ad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easy-table-of-contents.php
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,7 @@ public static function the_content( $content ) {
$ez_toc_current_post_id = function_exists('get_queried_object_id')?get_queried_object_id():get_the_ID();

// Bail if post not eligible and widget is not active.
if(apply_filters( 'current_theme', get_option( 'current_theme' ) ) == 'MicrojobEngine Child'){
if(apply_filters( 'current_theme', get_option( 'current_theme' ) ) == 'MicrojobEngine Child' || class_exists( 'Timber' ) ){
$isEligible = self::is_eligible( get_post($ez_toc_current_post_id) );
}else{
$isEligible = self::is_eligible( get_post() );
Expand Down Expand Up @@ -1577,7 +1577,7 @@ public static function the_content( $content ) {
return Debug::log()->appendTo( $content );
}

if(apply_filters( 'current_theme', get_option( 'current_theme' ) ) == 'MicrojobEngine Child'){
if(apply_filters( 'current_theme', get_option( 'current_theme' ) ) == 'MicrojobEngine Child' || class_exists( 'Timber' ) ){
$post = self::get( $ez_toc_current_post_id );
}else{
$post = self::get( get_the_ID());
Expand Down

0 comments on commit 6f92ad4

Please sign in to comment.