WordPress.org

Ready to get started?Download WordPress

Forums

Custom fields display problem (used to work, but doesn't anymore) (3 posts)

  1. massa974
    Member
    Posted 2 years ago #

    Hi,

    This is concerning http://www.imwhatsnew.com.

    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(); ?>
    		</span>

    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 : http://www.imwhatsnew.com/monetization/

    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 !

  2. massa974
    Member
    Posted 2 years ago #

    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.

  3. massa974
    Member
    Posted 2 years ago #

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

    I indicated one external url for each article, with the following plugin :
    http://wordpress.org/extend/plugins/open-external-links-in-a-new-window/

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic