Issues getting PHP to display in category pages

Based on your category.php I assume you’re using the Zeal theme, which means that get_template_part( ‘template-parts/content’, ‘category’ ) probably spits out something like this, https://themes.trac.wordpress.org/browser/zeal/1.0.8/template-parts/content-category.php, but do correct me, if I’m wrong. Based on this assumption I’d say there is no the_content hook available in your loop, so your crunchify_social_sharing_buttons function never gets executed. But … Read more

Firing schema via code in functions.php doesn’t work

The more cleaner way of adding the custom data to your site’s <head> is to use a custom function, which you hook to a relevant action. In this case you could for example utilize the wp_head action. Like so, // this goes to functions.php file add_action(‘wp_head’, ‘insert_my_page_schema’); function insert_my_page_schema() { // only execute the code … Read more