In wordpress backend, under Settings > Reading, I'd like to expand the option to chose what the front page is set to. Currently there are only two options, Blogs Pages and a static page. I will have a series of about 8 different category posts. Is there a way to show or choose a category post (eg A, B, C) to be the homepage?
In order to do this, create a custom template specifically for this page. Then, in the Admin Panel, create a page and assign it that template. Your final step would be to go in under Settings > Reading and assign that page as your home page.
Related
On my website, I have different pages that can be accessed through the navigation bar at the top of the website(Like every other website), on the pages TX-21, TX-20, and TX-10. I want to show 1 product on each page.
I have tried working with the permalinks, but I can't seem to find a solution through this, because the only possibility is to make a "shop" page, which is what I want to avoid in a sense.
I also can't make one of the three pages my "shop" page, because then all of the products will be displayed on that page.
Many solutions are possible here,
The easy way to do it :
When you create a product on Woocommerce, a single page for the product is automatically created. So you can just go to appearance -> menus and select your product by choosing "product" on the left side. it will create a new menu element and linked to your single product page.
Also, if you to customize every product page as you want, the best way is to create 3 page " TX-21, TX-20, TX-10" and query what you want inside all of them by using a template-file.
I have a page containing a set of images linked to other pages. How can I make each of the linked pages a separate blog?
To give you some more context, each image represents a challenge that I set myself up to and I would like to have a separate 'blog' for each challenge to document my progress. So far I have managed to link pages together and navigate from the page containing all the challenges to the page containing the details about 1 single challenge. However the latter page is not a blog so I cannot add new posts to the page. If I try to write a new blog post it gets added above the challenges(list) page
This is a link to the page that I am refering to.
Thanks in advance for your help
What you need to do is use categories for your posts - like Challenge One and Challenge Two - and then your posts will be automatically organized into category archives. Add a third category - called All Challenges - to all the posts and that category archive will list all posts in all three categories by chronology.
The URLs to the category archive pages will be something like this, depending on your category names and slugs, and how you set up your category base in Settings>>Permalinks.
example.com/categories/challenge-one
example.com/categories/challenge-two
example.com/categories/all-challenges
Link those category archive URLs from your images on your main page that has a gallery of images for each challenge post category.
You can make up custom category templates for each category, so the layout and design can be different.
See
https://codex.wordpress.org/Using_Permalinks#Category_base_and_Tag_base
and
https://make.wordpress.org/training/handbook/user-lessons/categories-vs-tags/
and
https://codex.wordpress.org/Category_Templates
There are multiple ways you can achieve this in WordPress. Let me tell you the easiest one:-
Using Post Categories
Follow the steps below:
Step1: Break your challenges into different categories, for example Challenge 1, Challenge 2, and so on... You can easily do that by creating and choosing the right category while writing a post.
Step2: Go Settings->Premalinks in your WordPress dashboard and choose "Post Name".
Step3: Now you have to find the new links for your challenge images. You can find these links in Post->Categories tab within your dashboard. Once you are in the categories browse page within your WordPress dashboard, just hover over the category whose link you want and you will see a "View" tab which will take you to that particular category page. This category page will show only the posts that you have published under that particular category.
Step4: Once you have the category link with you just update it in the respective challenge image link.
I hope you will be able to resolve your issue with this.
I've registered a custom post type named portfolio. It's archive enabled, so I can visit it's archive page by visiting http://example.com/portfolio/ permalink.
Now, I want to create a static page with any given slug e.g. courses and I want to resolve this static page ID (as slug may change) to archive-portfolio.php page mentioned above.
Additionally, I also want to use that static page to be able to set as front page (just like any other static page) without losing it's ability to map to portfolio archive page.
How do I achieve this functionality?
Note: I want to implement this functionality in a commercial theme, so, any solution suggested must work out of the box i.e. without forcing end-user to deal with the file strucutre.
I want to use WP for a site that blog is just one aspect of it, and I don't want requests to home_url list blog posts (post_type=post), I want them be to fetched using another URL.
This topic default-archive-url-wordpress suggest two ways:
page_for_posts option
post_type=post URL query parameter
but I have questions
About the first, How a page would be able to loop into the posts, and where I should update this option (which hook)?
For the second, the guy says that using this param, make the wordpress get the archive for the specified post type, but I think posts don't have archive (according to includes/post.php their has_archive is left to default) how should I change this and also I want to use a permalink/pretty link for accessing posts.
Thanks in advance
Go to settings -> reading, and change the front page displays posts settings to front page displays a static page and then select a blog page.
Easy as pie.
I have a wordpress site setup tradepeacefully.com
i have postings that appear on the home page. I want postings under trades menu link
http://tradepeacefully.com/?page_id=27
how can i do it.
First create tow pages called "home" and "Trade" leave these blank then
Go to Settings > Reading.
Set 'Front page displays:' to 'a static page' and choose the first page you created above for 'Front page.' set 'Posts page' to the page "trade" you created above.
for more info please follow link
The easiest way to have this happen in WP is to not have your Trades page as a page. Use a category instead, which is usually setup to handle posts.