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 1011 Answer
Reset to default 0The 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).
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745325936a4622655.html
评论列表(0条)