Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #113801

    geekgoddess
    Participant

    My website URL is https://www.geekgoddess.com

    I’m inserting facebook opengraph tags on all of my pages using wp_head in the add_action function. This is working fine on every page EXCEPT for the posts index page (https://www.geekgoddess.com/blog). It even works on single post pages, but not the index page (is_home()). I see you are calling the wp_head function in your header script file, so I don’t understand why it isn’t inserting the code on the posts index page. I’ve changed the priority of the action to no avail. You’re using wp_head on your output.php file and that is inserting properly on the posts index page, so I’m at a loss …

    I searched the forum, but didn’t see this particular issue.

    Wordpress: 4.0
    Theme version: 2.51
    Shortcode plugin version: 2.40

    #113896

    Rad
    Moderator
    This reply has been marked as private.
    #113957

    geekgoddess
    Participant

    First of all, thank you for the response! However, I have it already working on all the other pages. I didn’t add my function to a child theme, but instead to a separate functions file that is included at the bottom of the main functions.php page. As I mentioned, it’s showing up correctly on all pages EXCEPT for the posts index page, which is very odd. If you view the source of any other page on my site except for the posts index page (which is “blog”), you’ll see the facebook open graph tags are being inserted into the head properly. Why not on the posts index page?

    I have no cache plugins installed. I’m only running one other plugin other than the ones required for the x theme, and I deactivated it but it made no difference.

    #114038

    Christian
    Moderator

    Hey there,

    In that case, please give us access to your WordPress admin so we could troubleshoot. And, please try placing the code in the child’s functions.php so it’s easy to track.

    Thanks.