Sticky Post

  • Unknown's avatar

    How do you prevent sticky post from showing on showcase template? Is there CSS code for this?
    I already have the modified CSS coding that prevents recent posts from showing at the bottom of showcase template pages.

    Also, is there a way to adjust the CSS code so that the recent postings and sticky posting would be on just one page. I am considering about have a “home” page that list the sticky post at the top and then recent post below that using the showcase template. I know how to change it such that I have a “static” homepage of sorts.

    Thank you so much.

  • Unknown's avatar

    Hi there!

    Marking a post as sticky is how you designate whether or not a post will show up on the showcase template. Since it would require modifying the underlying PHP code for that template behavior, there isn’t any CSS that you can use to make it work the way you want.

    You might want to look into Display Post Shortcodes as an alterative way to display posts on a page. You would lose the showcase template look, but you would have more control over what is being displayed. Here’s more information on this shortcode to help get you started:
    http://en.support.wordpress.com/display-posts-shortcode/

    I hope that helps! Let me know if you have any questions.

  • Unknown's avatar

    Thank you.

    The Display Post Shortcodes look interesting, but I’m not understanding what it says. What would I do, for example, to set a custom order in which blog postings are displayed on my homepage, please? It looks like there is some kind of code that goes into the actually posting and in the CSS?

    Thank you.

  • Unknown's avatar

    Hi there,

    The basic idea behind the Display Posts Shortcode is that you can add the following code to a page on your blog:

    [display-posts]

    This will display a list of your most recent posts on that page. You don’t need to enter anything to your CSS unless you want to style the list and change how it looks on the page.

    To customize the list, you can add more arguments to the shortcode. There are some examples listed on the support page.

    You can use the order and orderby arguments to set a custom order in which the blog posts are displayed. For example, the following code will put the list in alphabetical order by title:

    [display-posts order="ASC" orderby="title"]

    You can find the available parameters for the orderby argument here:
    http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

    I hope this helps! :)

  • The topic ‘Sticky Post’ is closed to new replies.