最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to Make my Homepage Display a Single Specific Post?

programmeradmin1浏览0评论

This is kinda tricky, I tried looking for a solution but failed.

I want to make mu homepage (www.mywebsite) display a post (www.mywebsite/my-first-post). I basically want to make a post as my front page! I do not want to get post content into the homepage.

I tried to do a redirection, it worked well, but the problem is when I share my website address over Facebook and tried to click the URL (www.mywebsite), I get to the homepage and no redirection happen.

Extra info.

I use Facebook Open Graph tag.

Any solution?

This is kinda tricky, I tried looking for a solution but failed.

I want to make mu homepage (www.mywebsite) display a post (www.mywebsite/my-first-post). I basically want to make a post as my front page! I do not want to get post content into the homepage.

I tried to do a redirection, it worked well, but the problem is when I share my website address over Facebook and tried to click the URL (www.mywebsite), I get to the homepage and no redirection happen.

Extra info.

I use Facebook Open Graph tag.

Any solution?

Share Improve this question asked Jul 12, 2019 at 15:56 AndrewMkAndrewMk 101
Add a comment  | 

1 Answer 1

Reset to default 0

The simplest way is to go to Settings > Reading and choose "Your homepage displays" - "a static page." That will give you a dropdown so you can choose the specific WP Page you want to display.

Other options include creating a child theme or a custom theme, or in functions.php using pre_get_posts() to modify the main query on the homepage to only pull the 1 specific Post or Page you want to display there (this may not work in all themes - it just depends on what theme you're using).

发布评论

评论列表(0)

  1. 暂无评论