Forums

Only show posts from one Category on main page (25 posts)

  1. wizywyg
    Member
    Posted 7 years ago #

    I have several categories, but only would like posts from One categroy show up on the main site. The rest, the visitors must click on the category to view any posts within.

    how do i change that? (and can this feature be added to any updated version of WP ?)

  2. moshu
    Member
    Posted 7 years ago #

    The search feature in the upper right corner is your best friend :)
    http://wordpress.org/support/topic.php?id=20047#post-114253

  3. wizywyg
    Member
    Posted 7 years ago #

    Hi, can someone post a more basic explanation?

  4. wizywyg
    Member
    Posted 7 years ago #

    Sorry to reply again, but Moshu, that thread didn't give any explanation, and has been left unanswered.

    Also, on the main page "menu" for the category area, how do I get it to only display the "top" categories, and if one clicks on that category, the subsequent page will then show links to the subcategories and their posts?

    For example

    Category:
    A Cat
    B Cat
    C Cat

    Are all top categories and that's all I want to see on the main index.php page.

    But, A Cat has subcategories of Sub A1 , Sub A2 and Sub A3. So if I click on A Cat from the menu, the next page should display links to Sub A1, Sub A2 and Sub A3

  5. Mark (podz)
    Support Maven
    Posted 7 years ago #

    What have you tried to get the effect you want ?

  6. wizywyg
    Member
    Posted 7 years ago #

    What do you mean?

  7. oriecat
    Member
    Posted 7 years ago #

    Use the Front Page Categories plug in to have it just display the one cat on the main page.
    http://dev.wp-plugins.org/file/front-page-cats/trunk/front_page_cats.php

  8. wizywyg
    Member
    Posted 7 years ago #

    How do i install it? I only see code, no explanation.

  9. ColdForged
    Member
    Posted 7 years ago #

  10. oriecat
    Member
    Posted 7 years ago #

    It's a plug in. You need to copy the code, save it to a file (call it frontpagecats.php or something like that). Where it says $cats_to_show = '1'; Change the 1 to the category # of the one you want to show. Save, upload to your plugins folder. Go to your plugins page and activate it.

  11. wizywyg
    Member
    Posted 7 years ago #

    Cool that worked. How about the menu question?

  12. ColdForged
    Member
    Posted 7 years ago #

    Try diddling with wp_list_cats. It should be able to be coaxed into doing what you want.

  13. wizywyg
    Member
    Posted 7 years ago #

    Which file can that be found in? In the template .php files Im using?

  14. wizywyg
    Member
    Posted 7 years ago #

    Now Im getting header errors from that frontpage.php file in the Admin section:

    Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\word\wp-content\plugins\frontpage.php:2) in c:\apache\htdocs\word\wp-admin\admin.php on line 6

    Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\word\wp-content\plugins\frontpage.php:2) in c:\apache\htdocs\word\wp-admin\admin.php on line 7

    Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\word\wp-content\plugins\frontpage.php:2) in c:\apache\htdocs\word\wp-admin\admin.php on line 8

    Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\word\wp-content\plugins\frontpage.php:2) in c:\apache\htdocs\word\wp-admin\admin.php on line 9

  15. wizywyg
    Member
    Posted 7 years ago #

    Wish we could edit our posts so we can add questions if we figure out something in the process.

    How can we "group" postings by category on subsequent pages?

    Ie if I go to Category A , I want to see posts from Sub A1 grouped together, and Sub A2 grouped together . Right now it just posts in order the posts were done.

  16. wizywyg
    Member
    Posted 7 years ago #

    On this:
    http://codex.wordpress.org/Template_Tags/wp_list_cats

    How can we get it to show categories that have 0 posts?

  17. ColdForged
    Member
    Posted 7 years ago #

    Note the hide_empty parameter. The default is 1, so passing a hide_empty=0 should show empty categories.

  18. Root
    Member
    Posted 7 years ago #

    wyziwig if you register for the forum you should be able to edit your post.

  19. garethjmsaunders
    Member
    Posted 7 years ago #

    My favourite show-only-on-the-front-page plugin is Richard Goodwin's excellent ShowOnFrontPage

    http://www.richardgoodwin.com/wp/2005/01/08/new-plugin-showonfrontpage/

    It does exactly what it says in the php file. I quote:

    This plugin is designed to allow users to prevent selected posts from showing on their WordPress front page. The reasons for doing this are varied, but enough people were asking about it, and I wanted to write a plugin bad enough, that I figured it was worth doing. This is my first, so please don't shoot me if it doesn't bring you riches or happiness :-)

    While you are writing your blog post, in the Advanced section there will now be a checkbox that controls whether the article appears on the frontpage or not.

    Gareth

    ps Just re-read the first post in this thread and I realised that my post here doesn't really address the need for only one category to appear on the frontpage ... but nevertheless, this is a good plugin anyhow! Good if you only want certain posts (from any category) to appear on the frontpage ... I'll get my coat!

  20. katesgasis
    Member
    Posted 7 years ago #

    You can try the plugin of Keith McDuffe. It lets you choose which categories will appear in the frontpage. Other cool features are also available like an option to hide the category from search results, rss feeds, category list...
    You can combine it with Richard Goodwin's ShowFrontPage plugin.

  21. keaven
    Member
    Posted 7 years ago #

    Use the Front Page Categories plug in

    I was using this for a while, but then someone told me that my RSS feeds were not aggegating properly. Once i deactivated this plug in, my feeds aggregated just fine again.

    Is there a 'show on front page' plug in that will not screw up the feeds?

  22. Creap
    Member
    Posted 7 years ago #

    I'm getting the same error in the admin section as wizywyg.

  23. TonyWright
    Member
    Posted 6 years ago #

    ive successfully set up the cats plug in but im getting a horrible ton of lines in the wordpress control panel reading:

    Warning: Cannot modify header information - headers already sent by (output started at /home/hiphopne/public_html/wp-content/plugins/cat.php:66) in /home/hiphopne/public_html/wp-admin/admin.php on line 6

    Warning: Cannot modify header information - headers already sent by (output started at /home/hiphopne/public_html/wp-content/plugins/cat.php:66) in /home/hiphopne/public_html/wp-admin/admin.php on line 7

    Warning: Cannot modify header information - headers already sent by (output started at /home/hiphopne/public_html/wp-content/plugins/cat.php:66) in /home/hiphopne/public_html/wp-admin/admin.php on line 8

    Warning: Cannot modify header information - headers already sent by (output started at /home/hiphopne/public_html/wp-content/plugins/cat.php:66) in /home/hiphopne/public_html/wp-admin/admin.php on line 9

    DOES ANYONE KNOW HOW TO RESOLVE THIS? THANKS.

  24. Beel
    Member
    Posted 6 years ago #

    Yes we all do, perform a search of the forum on the warning.

  25. Sevendreams
    Member
    Posted 5 years ago #

    Front Page Filter
    http://smallestbusiness.com/2006/03/02/front-page-filter-plugin/

    This plugin worked beautifully for the purpose of displaying only one category of my choice on the front page.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.