in my wordpres have many category ( blog, gallery, review, carrer, profile) now i want to show in my blog page one widgets (custome widgets or hard code anyhow) only blog category month list and if i click month then show only blog category not other category. i can able to show only blog month by using plugins but if i click month then show all post from other category to. guys can you suggestion me how i can i do that. i am googling but not get any proper solution yet. see attached file my archive list. it could be widgets or hard code in template page no problem
perticular category archive file.
copy archive.php and rename with category-$slug.php otherwise category-$id.php
and change code in your archive file.
$slug = yourcategory slug name
$id = your category id
Related
I have recently set-up my own blog on wordpress and added some 2-3 posts for a category, say A. There is also an option in the menu which has one page to give introduction of category A. This page (which gets opened by clicking Category A on menu) gives some brief description about the category. How can I make the posts related to category A appear after the description? I'm a newbie in wordpress. Any help will be appreciated!
Thanks
Instead of creating a page for certain category to show brief description about it. You can add description to the category. Navigate to the Posts >> Categories >> Find the category and hit edit. Where you can see the category description.
And as always you can set the category in menu! And it will display the brief description of category and all the posts in that category! Let me know if you still need any help! :)
I have created a custom post type named vehicles and there are different categories for that like trucks, cars, vans etc. I have created a taxonomy named vehicles-categories and now I want to show posts from taxonomy like cars on specific page which will show only posts from that certain category/taxonomy.
I have written WordPress custom loop but it does takes me to index.php page while I want different styles for that cars page.
Can anyone figure out what's am I doing wrong?
You have to create a custom template for your taxonomy to show posts from that specific taxonomy.
In your case if you want to show posts from term "car" then your template name will become taxonomy-vehicles-categories-car.php and WordPress will show posts on this page (you can style and get data according to your needs in this template).
Similarly, you can create taxonomy-vehicles-categories.php page to show posts from this taxonomy and can code this page to show posts as you want.
For further and in-depth understanding about how WordPress uses taxonomy template files visit the official codex page.
I would like to remove creation date and category in WordPress post.
In particular, I would like to use a plugin that hides that infos when I see the list of articles in my home page, or when I read the article (precisely, after the article title)
I do not want to modify Wordpress template files because, after an update, modifications could be lost.
Any suggestion?
I'm currently trying to build a wordpress product catalog with a custom taxonomy.
I'd like to have browseable multi-level category system, so if I click the Catalog menu, it would show all the top parent categories, and if I click on one of these categories, instead of showing me the posts in that particular category, I want it to list all it's subcategories.
For this I'm using two slightly modified plugins currently:
Multi column taxonomy list, and taxonomy images.
My approach would be to have the taxonomy lister display custom links linke www.xyz.com/wp/product?cat=doors
and the product page would process the $_GET data cat and forward it to the shortcode somehow so it would be [mctl taxonomy='productcategories' parent='$_GET['parentid']']
.
So for the TLDR: How can I pass variables from the URL to the shortcode, or to the plugin.
Thanks for any help.
Nevermind, I figured it out. I just had to edit the plugins php and use the $_GET[''] stuff there.
So in wordpress, I have a list of pages in my navigation. Home - Videos - Blog
The "Home" shows every blog post regardless of category. How can I make the Videos and Blog show specifically every post from the "blog" category or the "videos".
Thanks
Greg
You can do this a couple of ways.
First, this functionality is built into WordPress. Every category can be called by a URL:
http://www.yoursite.com/category/category-slug/
The /category/ part of the URL is the WordPress default and you can change it under Settings | Permalinks in the Optional section.
The second way would be to create a custom page template and use the query_posts() function to include or exclude whatever categories you wish. The syntax is:
query_posts( 'cat=1' );
To get all posts in category ID 1 (use Posts | Categories to get the ID numbers). If you want a page with two categories:
query_posts( 'cat=1,3' );
To exclude a category and return everything else:
query_posts( 'cat=-5' );
query_posts() is pretty flexible and takes a bunch of different arguments. You could do worse than to read the Codex article for it.
If you are using WordPress with BlueHost, click on Appearance -> Menus. Under "Menu Items," hit "Categories." Select the category you want to transform into a page and click "Add to Menu." The category will become a page on your menu. Now every blog post assigned to that category will appear only on the corresponding page.