How to filter categories in index.php
-
I need to know how to filter posts by category in the home page. The category is passed as the subdomain in the url. I don’t think I’m looking for a plugin as the ones I’ve looked at ask for a specific category to be defined in the dashboard, and this should be a dynamic solution.
WP is still confusing for me, I have little idea how everything ties in. I suspect the plugin I’m using extracts the category/subdomain from the url, to use in other page filters, so it may be putting the category into some global variable. I don’t know, and don’t know how to find that out. The plugin is the modified versin of WP-Subdomains by lontongcorp:
https://www.ads-software.com/support/topic/plugin-wp-subdomains-331-working?replies=26
- The topic ‘How to filter categories in index.php’ is closed to new replies.