• Anonymous User 17976131

    (@anonymized-17976131)


    So far I’m not having any luck in my search for a plugin (or even a custom function, if need be) to do this. I know it’s not possible out of the box, but does anyone know if there’s an existing solution somewhere to stick a specified page to the top of the home page instead of the normal use of a sticky post?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    I don’t think this type of plugin exists.

    Thank you

    Moderator bcworkz

    (@bcworkz)

    You cannot make a page sticky in the usual sense. You can customize the template your theme uses to display content from a particular page at the top of your home page. Or cause a static home page to display blog posts below. Are you using the default blog listing front page? Yes from the phrasing of your question. You’d customize your theme’s index.php template. When we customize templates, we recommend creating a child theme to protect custom work from theme updates.

    Copy your parent theme’s index.php template to the child and name it front-page.php. Add code above “the loop” to get the specific page you want, then output elements from the WP_Post object properties that represents the page.

    It’d be simplest to just hardcode the page to display. To have it be selectable from the backend gets more involved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Make a page sticky instead of a post?’ is closed to new replies.