Support » Developing with WordPress » Set of posts for the front page

  • Hi,
    I’m developing a theme with a front page that would have a grid of tiles/squares (3×3). Each of the square would have a title and would link to another page/post. What would be the best way of designing it so that it’s easy for an end user to choose the content for the front page. I can think of a way of doing it with ACF where the front page would also have a set of 18 fields (9 x (Tile title + Link to the page/post)) but I’d rather not force the user to install any plugins.

    Can you think of any other way of accomplishing it without extra plugins?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    You can develop a theme settings page, or better yet, a customizer section, that allows users to select or indicate the desired posts. Your front page template code would then query for the selected posts and output the grid content.

    How you want users to select posts is up to you. Something like how pages can be selected to be linked to as menu items on the menus admin screen is one model. A series of fields where users paste in URLs will work.
    https://developer.wordpress.org/themes/customize-api/

    OK. Thanks. Will set up a customiser section.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.