• Resolved xennox

    (@xennox)


    Hi everyone,

    I am using a commercial theme for the website I’m working on. My homepage is setup with the blog template and it displays all posts like usual. I need it to display only posts from one category and I can’t work it out.
    My theme doesn’t have the option to select categories when I’m using the blog template to create a new page.
    Any help will be greatly appreciated.

Viewing 11 replies - 31 through 41 (of 41 total)
  • S_Byrnes

    (@s_byrnes)

    Agreed with moderators edit, that was silly posting your details publicly. A better way would be to email over your themes files to one of us and have us edit and send them back. Specifically just send the index.php, or possibly the content.php (or similar)

    Thread Starter xennox

    (@xennox)

    OK, my bad. I’m really sorry for the inconvenience guys and thanks for all your support.

    WPyogi

    (@wpyogi)

    Sorry, but that’s not really very advisable either – as you have no idea who the people are on a public forum.

    Rajesh Soni

    (@rajeshsoni)

    @WPyogi I’ll remember that from hereon.

    @xennox Try this modified version of your file: https://pastebin.com/QUXUcv8c

    Thread Starter xennox

    (@xennox)

    Let me know where your intervention was. As I mentioned, I noticed that I must edit all 4 home templates to get the results.
    I uploaded the new v1 template, but no change. If you tell me the code you replaced or added I will try to do it myself for the rest of templates and test again.

    Rajesh Soni

    (@rajeshsoni)

    Sure, here’s the diff: https://pastebin.com/diff.php?i=QUXUcv8c

    Thread Starter xennox

    (@xennox)

    Getting a syntax error now:

    https://pastebin.com/URPa3dZZ

    Rajesh Soni

    (@rajeshsoni)

    How does that file look like around line # 113?

    Thread Starter xennox

    (@xennox)

    I know why sorry. Give me another 3mins please.

    Thread Starter xennox

    (@xennox)

    Bro, there’s no space in this text box to thank you enough. First was my syntax error and then we shouldn’t mess with the flexslider. I kept the original code for the slider, and just replaced the second set.
    It’s all showing up like I wanted.
    Thank you a million times, you are the best!

    Rajesh Soni

    (@rajeshsoni)

    No worries, buddy! Glad I could be of help.

    Cheers!

Viewing 11 replies - 31 through 41 (of 41 total)
  • The topic ‘Blog: how to display only selected category?’ is closed to new replies.