• Hi,
    I’ve been using these forums and so far it’s answered all my questions. But now it is time I post here because I don’t think I have any more patience trying to figure this out myself.
    So I would be so grateful if any of you geniuses could help me ??

    I’m trying to modify a template that I bought. I’m setting up a Forex website and I’ve made some headway, but it seems that I’m just digging a bigger hole ??

    What I’m stuck with is at the bottom of the website, I’m trying to just display the posts from my blog category (id 39). But for some reason it’s
    1- displaying posts from other categories also
    2- displaying more than the 3 posts I thought I was telling it to.

    Here is the code that I assume I should be changing:
    https://pastebin.com/zNz4id2Z

Viewing 2 replies - 1 through 2 (of 2 total)
  • try and tidy this section:

    $wp_query->query("showposts=3");
                            ?>
    <?php query_posts('cat=39'); ?>

    change to:

    $wp_query->query("showposts=3&cat=39");
                            ?>

    (untested)

    Thread Starter kathorun

    (@kathorun)

    Thank you sooooo much!
    That did the trick! ??

    1000 thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trying to get only specific categories displayed – digging a deep hole’ is closed to new replies.