• Resolved DaveChester

    (@davechester)


    Hi

    I originally ran Yoast on my site but have changed over to you guys and imported my data. If I go to a specific page on our site and edit I can see the meta description I want and it has a good status. The problem is if I log out and browse to that page and then look at page source the description isn’t contained in the actual html. The title does seem to come through.

    I am at a loss as to why this is happening and couldn’t find any information in previous posts. Can you help?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    Unfortunately, we often get reports like these because some caching plugins don’t purge the post’s caches immediately after updating. Please see if clearing the cache of WP-Optimize helps fix the issue immediately.

    Thread Starter DaveChester

    (@davechester)

    It doesn’t I am afraid. I have been running your plugin for maybe 3 or 4 weeks and cleared multiple times in that time.

    I have also just restarted the server to make sure it isn’t a server side caching issue.

    Thread Starter DaveChester

    (@davechester)

    Have you any other ideas I can try please or do I need to change plugins?

    Thanks!

    Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    Sorry for my belated reply.

    You mentioned that you were able to change the descriptions. I wonder — after you change them and reload the editor, are your changes visible in the editor?

    If your changes are gone, that might indicate issues with the PHP configuration, where post_max_size or max_input_vars are set too conservatively. Or otherwise, there’s a plugin conflict where a plugin crashes during the save-request. Or, although unlikely, a firewall on the server may be blocking some of your requests.

    If the descriptions are still visible after refreshing the editor, could you try deactivating the caching plugin or at least clear its cache one more time and see if the descriptions appear correctly on the front-end? I want to be sure that’s definitely not the cause ?? Thanks!

    Thread Starter DaveChester

    (@davechester)

    Hi

    I believe I have found the issue but I am struggling to fix it!

    In my header.php I have:

    <meta name=”description” content=”<?php echo get_post_meta(get_the_ID(), ‘escape_description’, true); ?>” />

    previously the “escape_description” referenced Yoast which I think it why the descriptions aren’t working. I then amended to the above but it hasn’t helped.

    Can you help? Thanks in advance!

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Dave!

    TSF makes its own field to output the description. I’m not sure why you’re making a custom output field in your header?

    TSF hooks into wp_head to output its metadata. Make sure your header.php file calls the function wp_head(), which consequentially evokes the wp_head hook. For an example, please refer to the WP community provided theme: https://github.com/WordPress/twentytwenty/blob/6d0a5240af108d02f58ec797fd49b32458a4c698/header.php#L14-L23.

    If you want to keep managing your custom header items, which I do not recommend, then you’d have to use something like this:

    <meta name="description" content="<?php echo function_exists( 'the_seo_framework' ) ? the_seo_framework()->get_description() : ''; ?>" />
    
    Thread Starter DaveChester

    (@davechester)

    That has fixed it thanks! I will ask my developer to look in to your other points.

    Many thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Descriptions Not Appearing’ is closed to new replies.