I am trying to: use content templates to display custom single-page pasts for each of my custom post types
I visited this URL: hidden link
I expected to see: featured image, post title, etc. that reside in my Single Brand content template.
Instead, I got: no content at all....just date, author and no comments yet...
worked great in a previous theme, but no this one that I paid money for (Athena Pro). Debug test wouldn't work on page with content template, only on pages with full views....in looking at php files, it appears to use 'the_content' though and trying other variations didn't work like 'get_the_content'...happy to provide temporary admin login credentials.
Dear Mattnet,
Since it is a compatibility problem, please fill below private detail box with login details and ftp access of your test site, I need test and debug it in a live website, thanks
Thanks for the details, I can login your website, please check the source codes of your theme folder \athena_pro\inc\athena.php, line 2917~2969:
function athena_add_social( $content ){
if( is_single() ) :
if( get_theme_mod('social_sharing', 'on' ) == 'off' ) :
return;
endif;
...
return $content;
}
add_filter( 'the_content', 'athena_add_social' );
This php function "athena_add_social" will add a filter in every post, output blank result when the theme option "social_sharing" is setup as "off", I suggest you contact your theme author for it, I think it should be able to return the content too.
currently, you can add some codes to remove this filter, for example, add below codes into your child theme/functions.php:
add_action( 'after_setup_theme', 'my_func' );
function my_func(){
remove_filter( 'the_content', 'athena_add_social' );
}
Please test it, check if it is fixed or not.
Perfect fix for my needs! Thanks for looking into this! Well done.