Wordpress generated page with values from url - wordpress

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.

Related

How do I make a tag taxonomy page?

I have woocommerce plugin. I created a custom tag taxonomy under products to pick the product ingredients. ( https://pasteboard.co/J2BlgqI.png ). To show them as buttons on the product page ( https://pasteboard.co/J2Bn7FD.jpg ).
Now I want the visitor when they click on the ingredient it shows them an ingredient page information. So, if they click on “Beeswax” it shows them Beeswax information like name, function and etc…
Each time I click on “Beeswax it directs me to a filter page https://pasteboard.co/J31hg2w.png .
How can I make a page for each ingredient?
Is it even doable this way? or is there another way to accomplish this?
please advice…
thanks
Yes you can have custom templates for your taxonomies. The template hierarchy explains everything.
Custom taxonomies use this template file path:
taxonomy-{taxonomy}-{term}.php – If the taxonomy is sometax, and taxonomy’s term is someterm, WordPress will look for
taxonomy-sometax-someterm.php. In the case of post formats, the
taxonomy is ‘post_format’ and the terms are ‘post-format-{format}.
i.e. taxonomy-post_format-post-format-link.php for the link post
format.
taxonomy-{taxonomy}.php – If the taxonomy were sometax, WordPress would look for taxonomy-sometax.php.
taxonomy.php
archive.php
index.php
Since you haven't created a taxonomy-ingredients.php WordPress uses the next available option and falls back to the generic template.
You can even create a different template (page) for each of your Ingredient by using the first option above.

I have a personal taxonomy i.e car and i want to have a template to show car relevant post

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.

Add extra tab like page/post in wordpress for categories/products

I was wondering if there was any plugin or a way to add extra tab in Wordpress admin similar to page/post that would be called categories and inside of it have different categories + subcategories and inside them products? This is not an e-commerce site so I do not want to use woocommerce plugin...
It would look something like that:
Categories (Name of the tab) -> Category1 (ie. Tapes) -> SubCategory (ie. Isolating tapes-> Products
Would apprieciate any help! thank you
Despite that you can't create menu item structure like that you've described in your admin area without some complicated coding, you can create custom post types & custom taxonomies for it.
So, you can have the structure like this one:
Products
- Products
- Product categories
You can make hierarchical categories list & assign any of it to any product.
Please refer to the codex on creation of the custom post & taxonomies
https://codex.wordpress.org/Function_Reference/register_post_type
https://codex.wordpress.org/Function_Reference/register_taxonomy
If you want the plugin, there are plenty of them. For example you can use this one:
https://wordpress.org/plugins/custom-post-type-ui/

Classified Nested Category->Sub Category->Post View for Wordpress

I am really working hard to get a specific Post view in my Wordpress blog.
Example
Click http://theunlockr.com/roms/
Then Click http://theunlockr.com/roms/android-roms/
Then CLick http://theunlockr.com/roms/android-roms/asus-roms/
I figured that this is a nested view of categories and subcategories and finally the post in the respective category.
Need some input on how to do this on a basic wordpress blog.
I have already tried page builder and Grid views and alot of plugins, but cant really make this kind of view.
This is done via custom post types and custom taxonomies.
For example, you could create a custom post type rom, and assign the custom taxonomy roms with child categories Android ROMs -> Asus ROMs. This child category is assigned to the custom post type.

Category Listing Page with posts filtered to selected tag on Wordpress Blog

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.

Resources