Creating a single category page

Community Forums Forums Design Tips and Tricks Creating a single category page

This topic is: resolved

This topic contains 9 replies, has 5 voices, and was last updated by  Susan 1 year, 8 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #13322

    Rosesilk
    Participant
    Post count: 17

    Hello,

    I’m creating a page called “Questions & Answers”. I want an introduction and then a list of all posts in that category.  I used these instructions:  http://my.studiopress.com/tutorials/category-blog-page/

    I created the page with the introduction.   I added a custom field.  Name:  query_args   Value:  cat=48

    When the page shows, I can see the introduction, but there is no list of posts in the category.  Right now there is only one post in this category.

    Here is the page I’m trying to create:  http://stress-free-mama.com/stress-questions-and-answers/

    Any ideas for me?

    Thank you very much.

    #13352

    Susan
    Moderator
    Post count: 8972

    I just followed the tutorial, and it worked fine for me. If you substitute category 48 for another #, does that affect anything?

    The reason I ask this is because you’re having an issue on another thread with that category showing on your slider, even though you excluded it, so it sounds like that category ID is causing all kinds of issues :)


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #13354

    idchowdhury@gmail.com
    Participant
    Post count: 5

    Hi Rosesilk –  I think I just accomplished something on my site that sounds similar to what you want to do.  I am a rank novice myself, so take the below with a grain of salt, but I got it to work, and it was very simple.

    The net effect is a Category of posts that shows as its own page, and which is listed in the menu under it’s category name.  Here is what I did, which I think is a different method than what you described:  1) create new post with a title such as “Questions and Answers” (this will end up looking like the page title), and the content of the post might be “Here is where I try to answer your questions!”; 2) Create/assign a Category, to the post, for example “Q&A” and publish it; 3) visit your site from the front-end, and navigate to the “Q&A” category, and you will go to the page for that category (which at the moment has only the one post on it), and double click on the URL and copy the URL into your clip-board; 4) go back to your controls area, and go to Appearance>Menus and then where it says “Custom Links” paste your category-page URL into the URL-box, then under “Label” type in what you want the menu-item to say such as “Q&A”; then you just click “add to menu”. Remember to “Save Menu” before you navigate away; Now you should have a “Q&A” menu item that effectively leads to a Q&A “page”.

    The trouble now, is that the posts in this category will now show up under Q&A “page” AND in Your blog.  So, you can tell WordPress to exclude the “Q&A” category from your Blog, so that those items will only show up as long as you know the Category ID Number.  So, do this:   1) Go to the left side of the control panel under “Posts” and click “Categories”, and then when the list of categories comes up, hover your pointer over the “Q&A” category.  The status-bar of your browser will show a long URL-type thing including part that says something like “…category&tag_ID=15…..” where the number is your category ID; then 2) got to Genesis>Blog Page Template and put that category ID in the box that says to exclude these categories from blog-page templates.  You could make it so that people post their questions as “Comments” to your original post, and everything is just a chain of comments thereafter.  Or I guess you could let people make “posts” depending how you set it up thereafter.

     

    #13358

    Rosesilk
    Participant
    Post count: 17

    @Susan

    I tried a different category number and had the same problem.

    @idchowdhury

    Thank you for your idea but it doesn’t really accomplish what I want.  I want to create a page that has content on the top and the list of posts in that category beneath.  Thank you for your help.  I’ll keep experimenting.

    #13359

    idchowdhury@gmail.com
    Participant
    Post count: 5

    Although I have to say, now that I’ve seen the tutorial you linked to in your original post, I like that sound of that better than what I did, so I’m going to try that instead!  But anyway, now you have something else to try that also should work.

    #13360

    cdils
    Participant
    Post count: 421

    Make sure that page is using the “Blog Template” and not the Default Template.


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    #13364

    cdils
    Participant
    Post count: 421

    Thinking so more on this… Using that tutorial and setting it to use the Blog template will get rid of your “intro” text that you’ve typed into the page (just the nature of using the Blog template).

    If you go to Posts > Categories > and edit your Q&A category, you’ll see a spot to add an “Archive Headline” and “Archive Intro Text” – what about filling in that information and then just linking to your category archive page here:

    http://stress-free-mama.com/category/stress-questions-and-answers/


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    #13366

    Gary Jones
    Moderator
    Post count: 691

    Two SP points for Carrie :-)

    If you’re using the query_args trick, then it only works if the page template is set to the Blog page (does mention this in Step #1 on the tutorial).

    The better way, seeing as you only want a title and introduction for your category archive, is Carrie’s second suggestion – go and edit the category, add an archive headline and intro, and save.


    Changes in Genesis 2.1 – the ultimate guide to every single change in Genesis Framework 2.1, 2.1.1 and 2.1.2 (all 90 of them!) | @GaryJ

    #13375

    Rosesilk
    Participant
    Post count: 17

    @GaryJ @cdils

    Thank you, Thank you.  I got it all worked out.  Sorry I missed the blog page template part, but I ended up using the second suggestion anyway.  It looks great now.

    #13376

    Susan
    Moderator
    Post count: 8972

    kudos to @cdils :)

     

    Closing this thread as resolved.


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.