Search code examples
wordpresscustom-post-type

Can you set a custom post type post as a static home page in wordpress?


Can you set a custom post type post as a static home page in wordpress?

In the Reading settings, under Front Page Display, I have the option to use a static page.

Can I use a post as my homepage instead?

I am running multi-site and want the homepage of each site to be a post created under the "Agency" Custom Post Type. They are only allowed to have one post, and this will be their homepage.

I can't seem to get a post as the static homepage though.

Any advice?


Solution

  • First Create your custom template,

    And in your template, queried for your CPT(Custom Post Type),

    Now, create page in wp-admin and assign template that you created.

    Now go to Settings ->> Reading --> Select page that you created in wp-admin...

    I hope you get it..