I need to assign category for pages,i have tried many of the results found in google search . But while adding a category for Pages it automatically reflects in Posts also. Also tried few plugins (https://wordpress.org/plugins/create-and-assign-categories-for-pages/) . Is there an option for adding categories for pages alone ?
You can create a custom module instead ? with page capabilities and put supports "page_attributes"
What is the purpose to divide the pages? If you want to relate a group of pages create a parent page and use that! it can be used like a category.
Related
I have installed and configure wordpress on my server.
I have create some Posts and Categories.
What i want to do is to create a page with all categories. When i click on a category, i want to display all posts linked to this category.
Is there a way to do that without one line of code ?
Thanks
Option 1
If you are avoiding coding a plugin would be a nice solution:
Documentation here
Option 2
Using code there's a way of creating Page templates for the categories and getting customized results:
Documentation here
Option 3
You can use wordpress hierarchy to do it:
https://SITEURL/category/CATEGORY-NAME-HERE/
e.g.: https://mywebsite.com/category/cars/
I hope that might solve the issue :)
I am making this wordpress based website ( https://naujas.pacopac.lt/ ), it is for company with multiply product categories and in every category page I want to have filter system by different attributes.
I tried to create page for every category, but the problem is that I can add products of certain category, but I can not filter them then. Also I can only add filtering through widget.
So the way i see to make it is by directing people to product category page, like https://naujas.pacopac.lt/product-category/“name of category”/. For example https://naujas.pacopac.lt/product-category/pakuotes/ , add widget with filtering and then it works. BUT every category has to be filtered with different attributes, and I am only able to add one same widget to all categories pages and I can not find a way in WordPress to edit every each of these category pages, also I can only make one side widget.
So in short the problem is, how can I make different Side widgets and edit every each of product category pages with different widgets? I am using uncode theme with woocommerce and visual composer, would like to avoid coding, but also have basic knowledge in it so something not too complicated could be done.
Thank you very much guys!
Solved with Widget Logic plugin, able to show widgets on certain pages and hide others
I'd like to change the layout of the listing page of a business directory so that it looks similar to this layout, http://pastebin.com/1aHenCCN, using the same Wordpress theme.
I will modify single-listing.php page (at minimum)
Could someone help me with this? I know that I may need to pay for this.
listing page of all listing post type is archive-listing.php ,
Single page of individual listing post type is single-listing.php. So you need to modify archive-listing.php for to effect entire listing page.
Assume that listing is your post type .
I'm working on a Wordpress 3.4 project. I have categories and then several tags, and also one custom taxonomy as types.
Wordpress is fantastic as far as it handles all the taxonomy page, but I'm unable to figure out how to have pages where I have categories listing page (with pagination) specifically filtered to a selected tag or custom taxonomy.
So basically I want Categories, but then again, I also need to have a categories page with all posts filtered to specific tag, and then with pagination.
I have tried to figure out how to do that, but unable to find the exact doc or help. The issue is also with the URL, as how it will be formed?
Any idea how to fix that one, or any plugin to get this things done?
I think these two codex pages will help you along your way.
http://codex.wordpress.org/Class_Reference/WP_Query
and
http://codex.wordpress.org/images/1/18/Template_Hierarchy.png
You can use WP_Query to query posts based on tags and categories/custom taxonomies and much more.
If you look at the template hierarchy you'll see you can use special template files for tags and taxonomies too. Just remember to flush your permalinks if you're not seeing these templates being used if you create one.
I have two categories that need a special template. Each has one post and will display differently. So I read that if the category is named, for example, 'testing' and the template name is 'testing.php' then it should use that correct?
Why would it not? I keep previewing the post and it just redirects to the home page.
Naming the template testing.php won't work. You need to use either a slug or ID of your category, so either category-testing.php or category-ID.php if you know the ID of category (ie. you're not making a theme for release and your IDs are constant).
Category templates, which your version of WordPress has, can do it.
What version of WordPress are you running. WordPress 3.0 is new and will support what you want out of the box as you described.