Support » Fixing WordPress » ‘featured post’

  • gs06

    (@gs06)


    Hi guys,

    I want to have only one
    ‘featured post’
    on my Blog’s welcome page
    while the rest of the daily post
    users will be able to access via
    a navigation bar

    any ideas how do i achieve just one post on my blog’s welcome page ?

    Thank you for your help.

    ~ Grace

Viewing 9 replies - 1 through 9 (of 9 total)
  • manstraw

    (@manstraw)

    You can do that with this plugin.

    http://mattread.com/projects/wp-plugins/custom-query-string-plugin/

    Basically, it lets you customize the query that determines how many posts will show on the home page. You can set it to 1.

    the plug-in doesn’t a read-me file
    for novices as myself
    can you refer me to where i can find further instructions?
    Thank you !

    just wanted to clarify,

    i am looking for ANY plug-in
    which, allows me to control the number of posts in my
    blog opening page

    any suggestions ?

    You don’t need a plugin to do that. Open your main page (index.php) and find the following line:

    while (have_posts()) : the_post();

    and change it to:

    query_posts('showposts=x');
    while (have_posts()) : the_post();

    where x is the number of posts you want to show. For example, to show 2 posts, you would change it to:

    query_posts('showposts=2');
    while (have_posts()) : the_post();

    “You can do that with this plugin.”

    It’s not there. All I see is some discussions about it, that’s all.

    Thanks samsarin for the code.
    but i do not have

    query_posts(‘showposts=2’);

    I do have

    <?php if ($posts) {foreach($posts as $post) { start_wp(); ?>

    how do i cnage the number of posts ?
    Thank you
    ~ Grace

    If you have the plugin installed (the easiest way to do this), just click Options and then CQS to get to the config page for it. See where it says Add a New Condition? Beside Query select is_home, then move to the right and enter the number for posts you want to show (1 in this case). Then move to the right, and hit the Add button. That’s all you need do. I recommend you get your hands dirty with the plugin. Anything you do can be deleted easily.

    Any idea what plug-in they are talking about ?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘‘featured post’’ is closed to new replies.