gzembower

Member

Forum Replies Created

  • In reply to: Display specific post category on page

    #24106

    I am back. I have been on vacation for a week and have been busy with other things. I am pretty sure that what you have described in your last post will not do what I want. I do not want just links to the posts on a page I want the full post and all posts in that category on a separate page. Everything I have been reading tells me I have to modify the code in a child theme to accomplish this.

    What it boils down to is I want two ‘blog pages’.

    On my main menu I have a link to a page called ‘Happy Hour Listings’. On the page called Happy Hour Listings I want all posts in the category named Happy Hour to display on this page. Only that category on that page. I want to display about 7 per page.

    Also on my main menu I have a link to page called ‘Blog’. On this page I want every other post that is not in the Happy Hour category to display.

    The way it currently works is if I click my Blog link on my home page is displays all posts in every category. I do not want the Happy Hour category to display on the Blog page. I want all categories except the Happy Hour category to display on the Blog page.

    I only want the Happy Hour category to display on the page named Happy Hour Listing.

    I want the full post to display. Not just excerpts of the post, not just links to the post.

    Maybe you have explained this to me in the above posts and I am just not getting it. Thanks for your help. This is my last try in this forum to get this answered. I may have to seek out some local help that can sit down with me.

    In reply to: Display specific post category on page

    #24104

    Thanks for the tutorial KJ Odle. I have read this and thought about doing it this way. It gets me close but it is not quite the way I would like unless there is more I am missing.

    I have a home page and a blog page. It is my understanding that the blog page displays all posts.

    My website is used to find happy hour information at bars/restaurants.

    I have two, lets call them styles, of posts. One style is where I blog about the happy hour after I attend it. The other style of post is strictly information about the bar/restaurants happy hour (picture of bar, happy hour times, prices, etc.)

    I want only the critique style posts to show on my blog page. I want the information style posts to show an another page called happy hour listings. The critique style posts are in different categories than the information style posts. I thought by doing this I could display the different style posts on different pages based upon the category. Critique style posts on blog page. Information style posts on happy hour listings page.

    Can I accomplish this using the custom menu as you have suggested and I am somehow not understanding that? I have created a custom menu and I can get the information style posts to display on my happy hour listings page. What I am unable to do is keep the information style posts from showing on my blog page. Do I need to go into the code in order to exlude the information style posts from displaying on the blog page? Is there a good plugin to accomplish what I want?

    Sorry for the long reply. I hope you are able to decipher this post. Thanks again for replying and helping. It is really helping me learn more about WP.

    In reply to: Display specific post category on page

    #24103

    Will put code in backtics in future. thanks for the pointer. I will read the tutorial and get back to you. thanks again for the help.

    In reply to: Display specific post category on page

    #24100

    Maybe it is not and different and I am confused. LOL some background. I have created single posts for each bar with a happy hour. if a bar has a happy hour on Monday i have put it in the Monday category, etc. Now I want to have a sub menu item named Monday under a top menu item named Happy Hours and then have that page display all the posts under the Monday category on a page.

    Another example is if I were on a product website and they had a menu item named cars and a sub menu item named compact. If I select compact then a page of all compact cars displays.

    Am I making this more difficult than it is? Thanks for responding. I have beating my brains out with this. I have looked at plugins, code snippets, etc. I see code that i think will work but i can’t figure out where in this theme to put it since there are so many template parts.

    Here is an example of some code i saw to display all posts in category 38. Thought this might work but have no idea where to put it and how to implement it.

    <?php
    query_posts('cat=38');
    if(have_posts()) :
    while(have_posts()) :the_post();
    ?>
    <h2><a>"><?php the_title();?></a></h2>
    <div><?php the_content('Read More') ?></div>
    <?php
    endwhile;
    endif;
    wp_reset_query();?>

    In reply to: Display specific post category on page

    #24098

    I am pretty much a newbie to wordpress and themes. I did create a child theme. i don’t see a page.php file. I am pretty confused with the whole template part thing. Here is what I would like to do.

    I would like to have 7 sub-menu items under my main menu item that displays posts from my Monday category, tuesday category, wednesday category, etc. Do I have to create a separate Monday page template, tuesday page template, etc to accomplish this? Also, would i need a 7 separate loop files to place the query-posts template so i can filter out all other posts but the one I want? Maybe you could just give me short idea as to which path to follow on this. Thanks for your help.

Viewing 5 posts - 11 through 15 (of 15 total)

  • 1
  • 2