Plugin that allows selected catergory to show on homepage?

Discussion in 'WordPress' started by bob25, Jun 5, 2010.

  1. #1
    I'm running a plugin that only works with posts. I have two categories, but I want only one of them to show the posts on the homepage. Any ideas on how to do this? I tried the following plugins, but can't seem to make them work.

    Front Page Manager
    WP Hide Posts

    Thanks
     
    bob25, Jun 5, 2010 IP
  2. zhoom

    zhoom Peon

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    use a category shortcode. try plugin called category shortcode. Otherwise you may need to use php to create your own shortcodes.
     
    zhoom, Jun 5, 2010 IP
  3. ilook

    ilook Well-Known Member

    Messages:
    1,602
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    165
    #3
    You don't need a plugin for that.
    You can show it in the sidebar.

    1. go to yourdomain.com/wp-admin/widgets.php

    2. drag the Categories to sidebar 1

    3. Click save.

    Done!
     
    ilook, Jun 6, 2010 IP
  4. bob25

    bob25 Well-Known Member

    Messages:
    1,519
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    128
    #4
    Somehow I can't get it to work right either :(, but I've thought of a kinda workaround. I'll just use the sticky post, I'm just debating on how much to set the blog posts to. BTW I want to use posts because the script updates any changes in the price and percentage discounted automatically, but it only works with posts.

    Thanks
     
    bob25, Jun 6, 2010 IP
  5. createdevelop

    createdevelop Well-Known Member

    Messages:
    267
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    140
    #5
    You could create a custom page template and make it so the loop only shows posts from your selected category.
     
    createdevelop, Jun 6, 2010 IP
  6. zhoom

    zhoom Peon

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Are you able to give me a link to your site? And what is the plugin that you are using that you mentioned in your first post?

    have a look at this tut by smashing magazine...you will have to google mastering-wordpress-shortcodes and go to the smashing mag tutorial. (Sorry I cant post live links as I'm new to the forum). Go to #5 - Get posts from WordPress Database with a Shortcode

    That might help with category shortcodes...
     
    zhoom, Jun 6, 2010 IP
  7. bob25

    bob25 Well-Known Member

    Messages:
    1,519
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    128
    #7
    bob25, Jun 6, 2010 IP
  8. zhoom

    zhoom Peon

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #8
    To be honest, I've never used that plugin...But after [very quickly] reading the description, it seems that it's key purpose is to block crawlers from searching specific folders or content. Is that why you use it? If so, why not try a modified robots.txt instead?

    But I still think the category shortcode option (try the smashing mag tut) would be the best option for for displaying one specific category on your homepage...As far as I know anyway...
     
    zhoom, Jun 6, 2010 IP
  9. bob25

    bob25 Well-Known Member

    Messages:
    1,519
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    128
    #9
    Just saw that thing about hiding it from webcrawlers, but I didn't see that option to block them in the plugin. As far as I know I'm only "hiding" the category on the homepage, it has options to block it on other pages as well, but since I'm not using them I think it's okay.

    I'm not very technically inclined in php. I can drive a car very well, but heck if know how to make it work :confused:, same thing with Wordpress. The explanation looked like Greek to me :eek:

    Thanks
     
    bob25, Jun 6, 2010 IP
  10. zhoom

    zhoom Peon

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Ok, I'll have to check out the plugin later on. What is the site you are trying to achieve this on?
     
    zhoom, Jun 6, 2010 IP
  11. bob25

    bob25 Well-Known Member

    Messages:
    1,519
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    128
    #11
    It's not live yet I kinda put it on hold while trying to find the answer and started something else in the meantime. I'm going to outsource some articles and have an article catergory so I can keep updating it, and probably rewrite the descriptions as well if it starts to show some traffic. 65-inch-lcd-tv.com
     
    bob25, Jun 6, 2010 IP
  12. papayamilkshake

    papayamilkshake Peon

    Messages:
    108
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Have you tried Post List plugin? not too sure if it well work the way you want it.
    This plugin allows you to include a list of posts (e.g. latest posts, most commented posts, future posts, ...) in a page, post or widget. :)
     
    papayamilkshake, Jun 7, 2010 IP
  13. zhoom

    zhoom Peon

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Ok, I think this plugin called list category posts should do the trick for you. I believe it achieves the same effect as that tutorial I referred you to, without having to code! Plus it seems to have a large range of parameters.

    I just tested it out on a testing blog and it works perfectly!

    Some brief instructions:

    - Install the plugin List Category Posts
    - Add the following shortcode where you want to display the list on your page [catlist id=** content=yes] (where ** is the category ID number).

    That's it!!

    FYI: the content=yes parameter means that the page will show the content of the posts in that category. Without the content=yes, it will just list the titles of your posts.

    There are a tonne of parameters you can add to the shortcode...go to the developer's website here for the list: foro.picandocodigo.net/viewtopic.php?f=28&t=251
     
    zhoom, Jun 7, 2010 IP