• I have a blog – https://www.nerdynugua.com – where I write about many different things. I want to create pages on my blog that when a post is tagged within a certain category, those posts will show as a feed on whatever page I have it set to. I want it to have multiple categories to a page, though. I want it to show the same way my published posts save to my home page and not in the form of a list, so users can see the same image and writing just like they would on my home page.

    So the page would be

    page 1 = cat 1 + cat 2 + cat 3

    In the order of most recent being at the top.

    I’ve tried plugins that said I could use the shortcode and use the slug for the category archive, but those only either showed the code itself or in form of a list with a small excerpt and link to the post itself.

    I’ve seen references to “The Loop”, but as far as I can tell that doesn’t apply to what I need as I’m not trying to exclude anything from a home page, just adding to a seperate page. If I’m misunderstanding the reading, please explain.

    Thanks for all of the help.

    • This topic was modified 8 years, 2 months ago by nugua.
Viewing 5 replies - 1 through 5 (of 5 total)
  • This is an interesting idea. Have you considered using tags as well as categories?

    Personally, I would leave the category pages alone rather than customizing them and tag all posts within cat 1, cat 2, and cat 3 with the same tag then link to the tag page wherever you were going to link to the combined category page.

    Hopefully this makes sense and helps. Let us know either way we are here to help if this solution does not work for you we will find one that does!

    Thread Starter nugua

    (@nugua)

    I don’t want to alter the category pages, I just want all the blog posts that would be in cat 1, cat 2 , and cat 3 to show in page 1. This is because my blog covers sooo many different types of topics, I want people who are looking for a certain type of posts to be able to go to a page and just scroll through all of that “type”, like all of my posts about crafting to be under one instead of going to each individual tool review, tutorial, etc. I want people interested in a general topic to be able to go to that general instead of having to look at specifically tutorials, reviews. That’s too specific for me. The tags I use are usually more specific and every time I add a new one, I’d have to edit the page code. I want to set up the categories before, add them to the code, and just leave it.

    It is the I am still not certain I understand what you are trying to do. Personally I would look at using tags.
    Tags and Categories are not the same thing and both create a page for posts that fall under them.

    I have looked through your site a couple times now and it is not clear to me what your categories are or whether you are using tags. It might help me to better understand if you provide me a list of your categories and an example of ones you want one of these custom pages to combine into a single page. Hopefully my request makes sense, if not feel free to let me know and I can try to reword what I need in order to help you better.

    Looking forward to your reply!

    Thread Starter nugua

    (@nugua)

    I have tags and categories. 2 of my categories are video game news & reviews, and tech and internet news. I want those two to show up on a page like “nerdy info”. They have different tags. I assumed categories, since I preset them, would be simplest.

    Ah ha. Okay, I think you just need some custom archive templates added to your theme with custom query_posts statements set to show the category IDs accordingly based on which page you are on. These should created in a child theme.

    the query_posts statements should look something like this.

    <?php query_posts('cat=5'); ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
       <?php the_content(); ?>
    <?php endwhile; endif; ?>

    When you name the custom archive templates be sure you do it in a child theme and name each file differently. Also, keep the portion at the top that is commented out with a title but slightly modify each title. Then go create a new page under the pages area and create new pages for each template you just created. Be sure to select the appropriate template (this is why you will want to slightly modify the template name line so you can tell the difference in this drop down between each one!) under page attributes on the create/edit page screen.

    Hope this helps. Feel free to post back with further questions. I am happy to help further if you need more clarifications and if I am not around someone else here may chime in and help. Good luck!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘2+ Categories, 1 Page’ is closed to new replies.