WordPress.org

Forums

PHP Post problem (6 posts)

  1. danny_getextra
    Member
    Posted 2 years ago #

    Right so my problem is that I can't get the quote in the footer to just appear there when i place the content in the correct category named quote.

    "Getextra Customer Comments
    “Thank you Paul, I love my new website it is exactly what I had in mind.” Rick, http://www.rickabbottdesigns.co.uk"

    http://pastebin.com/yh5SQavP

    This is a link to the php code I'm using, I've copied it directly from a clone theme.

    Here is the link to mine

    http://79.170.44.141/dannycouncil.co.uk/

    Here is a link to the one i want it to be like. Need to make it so it doesn't pull the post in the bit just above the footer aswell as you can see in the one below.

    http://willerby.org.uk/

  2. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    I see the quote in the footer, is it the wrong quote?
    http://awesomescreenshot.com/0f9h0x9d5

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    Don't use query_posts() in a secondary query/loop. That's for amending the MAIN query only. Use get_posts or WP_Query instead.
    http://codex.wordpress.org/Function_Reference/get_posts
    http://codex.wordpress.org/Function_Reference/WP_Query

  4. danny_getextra
    Member
    Posted 2 years ago #

    No, you are perfectly right sir.

    My apologies didn't sleep well last night so my English is abit slow today.

    Basically I need it to just appear in the footer and not the one above.

  5. danny_getextra
    Member
    Posted 2 years ago #

    I'm not very experienced with PHP. Only just started directly editing it.

    What would be the next action for me to take to overide the current wp query?

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    See the links I posted above.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.