Forum Moderators: open

Message Too Old, No Replies

How to manage categories inside WP using AJAX?

         

toplisek

5:33 pm on Sep 12, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I try to get professional paid AJAX based script to manage categories inside WordPress.

Is the any suggestion what is the best option as I did not find.

not2easy

6:31 pm on Sep 12, 2021 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



WordPress is built on a PHP platform. PHP is processed server-side (before it is viewable) and JavaScript is processed client-side (after a page is loaded). You can see why you can't manage PHP code client-side. It is already processed before the JavaScript is called.

If you could describe what/how you want to manage the categories, it might be possible to get help from other WordPress users in the WordPress forum.

HTH

toplisek

7:54 am on Sep 15, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I understand this. There are two options:
1. An example:
https://www.colocrossing.com/blog/
You see categories on the right-hand side or at the top and when you click them it will be redirected to the specific category.
2. Another example will use AJAX based category management. When you click on category, you will stay on the same page but categories will show up only for the specific category.




[edited by: not2easy at 11:25 am (utc) on Sep 15, 2021]
[edit reason] Please see ToS [webmasterworld.com] [/edit]

not2easy

11:43 am on Sep 15, 2021 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



That is simply a menu of category pages. You create a Category page with paragraphs showing a minimal description of each page listed in that category and a link to that page. Each category page can be a subcategory if needed, but that is set up using the menu functions. You can create as many menus as you need.

toplisek

8:28 am on Sep 17, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, but the second point needs AJAX. I do not know an example to accomplish this option without the plugin.

robzilla

9:46 am on Sep 17, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



When you click on category, you will stay on the same page but categories will show up only for the specific category.

Do you mean sub-categories show up, or content (e.g. posts) show up, once you click a category? Assuming you mean content, if there's no ready-made plug-in for that, you'll have to find a programmer with knowledge of WordPress to write that for you. Make sure there's a fallback mechanism so that search engines can also get to your category pages.

If it's a WooCommerce site, I'm sure there are filtering plug-ins available.