WordPress.org

Forums

Virtue
[resolved] Sticky Post on Home Page (in the latest blog posts layout) (10 posts)

  1. itoma
    Member
    Posted 9 months ago #

    Hello

    I am using Virtue theme and I have the following question

    If I make an older post sticky - it appears the first on the blog layout.

    However, I would also like it to appear on the home page list of latest blog posts (which i configured in Theme Options).

    Is there any possibility to do that?

    You can take a look at the site

    http://imagesandwords.ro/

    The sticky post is first on the "blog" link in the menu, but it doesn t show up on the home page list of "latest posts"

    Hope you could help with that as well.

    Thanks and best regards,

    Ileana

  2. janet4now
    still awesome :)
    Posted 9 months ago #

    http://help.edublogs.org/sticky-post/

    This link has a visual to show you how to edit the sticky post so that it appears on front page.

  3. itoma
    Member
    Posted 9 months ago #

    Hello

    Thanks for the fast reply, but this wasn't exactly my question.

    I know how to make a sticky post, however in this particular theme an old post made sticky appears the first only on the blog page, while I want it to appear the first also on the home page (which is separate from the blog page, with a separate layout designed in theme options and which contains a "latest blog posts" widget-layout)

    There in theme options, there is the possibility to include in the layout a "latest blog posts" widget, but it only restrains to exactly the "latest posts". Or, in this case, I want to make an old post sticky and also to appear on the "latest blog posts" widget in home page.

    Hope there is a solution?

    Thanks

    Ileana

  4. janet4now
    still awesome :)
    Posted 9 months ago #

    Did you edit the sticky post so that the box is checked "Stick this post to the front page"?

    That was what the link was for. I realize you already created your sticky post.

  5. itoma
    Member
    Posted 9 months ago #

    Yes I did, i double checked it when i read your link - the option was already checked from when I first edited the post.

    Thanks,

    Ileana

  6. janet4now
    still awesome :)
    Posted 9 months ago #

    1. You can change your home page to list recent posts rather than using a widget
      http://codex.wordpress.org/Creating_a_Static_Front_Page (see all 4 model examples given)
    2. or edit your template home page file to display sticky post
      http://codex.wordpress.org/Sticky_Posts (see the section about adding to template file)
    3. or use another plugin to add an additional sticky post widget. (there are several)
      https://wordpress.org/plugins/tags/sticky-posts
  7. Kadence Themes
    Member
    Theme Author

    Posted 9 months ago #

    Ileana,

    The only way to do this would be to create a category with the posts you want to show on the home page, then in the latest post section choose that category so only the posts in that category show. Note, they will still be ordered by date.

    If you have the premium theme you can use shortcodes to add posts anywhere and that would be another option.

    Kadence Themes

  8. itoma
    Member
    Posted 9 months ago #

    Thanks fot the reply :), that possibility also crossed my mind so I will try to apply it :)
    Ileana

  9. Skarjune
    Member
    Posted 3 months ago #

    I have the same problem. I get the workaround, but it does not address the issue. In WordPress a Sticky post is simply defined as a post that will always be displayed on the homepage. Please consider following this WordPress standard with your themes.

  10. Kadence Themes
    Member
    Theme Author

    Posted 3 months ago #

    skarjune, Thanks for the post. If you make your front page your "post page" then the page content becomes your main post loop. And that is where sticky posts are supposed to stick to the font page loop so of course that is how this theme works.
    But since the theme adds a module for the home page called "latest post" which is separate from the main post loop. That is set up to only show the latest posts and ignore sticky posts. The thought behind it is to allow someone to have home page separate from there post page. There home page would have the latest posts and there "blog" page would have there main post loop with the sticky posts at the top.

    This separate loop can be edited using a child theme if you would like to make it more like the main loop. You can open the file virtue/templates/home/blog-home.php. Scroll down to line 37 and just remove that. and copy the file into your child theme at childtheme/templates/home/

    Hope that helps.

    Kadence Themes

Reply

You must log in to post.

About this Theme

About this Topic