Support » Fixing WordPress » Custom fields display problem (used to work, but doesn't anymore)

  • Hi,

    This is concerning

    The homepage list articles, that are actually links to external websites.
    These links are put in categories (several loops), and also mention the website the article comes from (the source of the article)

    I enter those sources in wp post editor, as a custom field.

    Here is the code I use in list.php (the template that allows me to list posts this way. This is included by default in my theme) :

    <span class="meta">
    		<?php global $wp_query;	$postid = $wp_query->post->ID; echo get_post_meta($postid, 'source', true); wp_reset_query(); ?>

    This used to work perfectly untill a few days.

    Now the problem is that it’s still shows the sources, but all links show the same source, i.e the latest one I added for the latest article.

    Even weirder, the categories page work just fine :

    It’s weird, I haven’t touched list.php since then.

    What changed however in the meantime :
    – switched to DSO
    – switched to fastcgi
    – played with W3TC to tweak website speed

    Do you guys know where this comes from ?

    Thanks !

Viewing 2 replies - 1 through 2 (of 2 total)
  • EDIT : the source is the word or few words beneath the article link.

    Example, in homepage, every articles show Problogger as the source, which is wrong, because each article has its own source.

    Sorry to flood the topic, but I got another problem actually.

    I indicated one external url for each article, with the following plugin :

    For some reason, it doesn’t work anymore. Articles on homepage and category pages link to their own permalink on my website. This is not how it’s supposed to be.

    This is nightmare, I really need your help guys.

    I use cloudlare it this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom fields display problem (used to work, but doesn't anymore)’ is closed to new replies.