Working on blog post page
-
Hey, thanks for this handy plugin ??
Just spent some time getting this to work on my posts / blog page. The subtitle from the newest post was being loaded up instead of the one that I set for the posts / blog page.
My fix… (hope this helps out someone else)
Use this
if( is_home() && get_option('page_for_posts') ) { $post_id = get_option('page_for_posts'); } else { $post_id = $post->ID; }
and
get_the_subtitle( $post_id, '', '', false )
instead of
get_the_subtitle( null, '', '', false )
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Working on blog post page’ is closed to new replies.