How to check if post title is located above the content?
I currently using thisThis code to addadds the image above post title, but it is applied abovebefore all post titles of current page located anywhere including the title which are on below the content (iepage.
How do i add one single image before comment list, next previous direction, etc.)the posts entry title?
function abovetitleadt_abovetitle($title){
//Return new title if called inside loop
if ( in_the_loop() ) {
$x = do_shortcode('[shortcode id="'. $id . '"]');
return $x . $title;
} else {
//Else return regular
return $title;
}
}
add_filter( 'the_title', 'adt_abovetitle');