WordPress.org

Ready to get started?Download WordPress

Forums

Custom Fields problem (4 posts)

  1. krystiank
    Member
    Posted 2 years ago #

    Hi,

    I have to sections in my sidebar, Resources and News

    I have a loops displaying most recent post titles for each group.

    I added custom fields to override the default recent posts. Basically if someone wants to see a different text rather than recent posts they can use custom fields in the post editor.

    It works when I add a replacement content for

    Resources and News

    it also works when I add a replacement for Resources
    It does not work when I Add text to the News and leave Resources field empty.

    I hope this make sense.

    Here is a code.
    http://pastebin.com/UNvTQgXq

  2. vjpo
    Member
    Posted 2 years ago #

  3. krystiank
    Member
    Posted 2 years ago #

    Thank you so much. It works now.

    I spend most of the day trying to figure this out.

    It still kind of not making sense to me but it's working on that's what matters.

    Thanks so much again.

  4. vjpo
    Member
    Posted 2 years ago #

    If you have than one query at one time, always use wp_reset_query() to avoid a queries interference :)

Topic Closed

This topic has been closed to new replies.

About this Topic