Page 1 of 1
wordpess
Posted: Wed Sep 13, 2017 7:18 pm
by Vegan
OK I have some misc categories used with game reviews on the gaming site
fps=136
tactical=192
so is there a permalink where I can choose example.com/category=136+192
I wanted to be able to narrow down say 500 fps action games into say tactical shooters where they are maybe 12 or 15 of them etc
ideally I would love to be have logical AMD, OR and NOT
is the blue sky or is there a way to do want?
Re: wordpess
Posted: Wed Sep 13, 2017 7:42 pm
by requinix
So I just went and picked a blog from some source. It uses category URLs like
Trying
pulled content from both categories, though it only showed name1 in the breadcrumbs. That might be the best you can get from vanilla behavior.
If you have the categories in a query string, try the comma or try multiple values with [] to make an array.
Re: wordpess
Posted: Wed Sep 13, 2017 8:18 pm
by Vegan
https://hardcoregames.azurewebsites.net/category/[fps,tactical]/
only gives the fps without also narrowing down to tactical
SQL would be
SELECT * from wp_posts WHERE category = fps AND category = tactical;
Re: wordpess
Posted: Wed Sep 13, 2017 9:32 pm
by requinix
Oh, you want both FPS and tactical? Then if what I said worked it wouldn't be right anyways.
I doubt there's a way. Given that what I found showed results from either category, if there was a way to do multiple categories then it would probably be the same.
If I was familiar with WP code I'd look into it, but a quick scan through their source didn't make it easy to understand.
Re: wordpess
Posted: Thu Sep 14, 2017 5:23 am
by Celauran
At a glance, it seems like you can pass multiple categories to
get_posts. Might take a little custom functionality, but it does appear to be supported.
Re: wordpess
Posted: Thu Sep 14, 2017 4:36 pm
by Vegan
I am kind of disappointed that WP is not as sophisticated as I would like to make more specialized URLs instead of using the search and then copy that URL which is clumsy to say the least.
https://hardcoregames.azurewebsites.net/?s=tactical+fps
Re: wordpess
Posted: Thu Sep 14, 2017 8:31 pm
by Celauran
Well, there's always
add_rewrite_rule.
Re: wordpess
Posted: Fri Sep 15, 2017 5:25 pm
by Vegan
I do not understand why rewrite is not offered standard
it makes using WP more powerful for sophisticated users
Re: wordpess
Posted: Sat Sep 16, 2017 5:22 am
by Celauran
Sophisticated users aren't the target market. Moreover, they can generally figure this out on their own.
Re: wordpess
Posted: Sat Sep 16, 2017 3:47 pm
by Vegan
Celauran wrote:Sophisticated users aren't the target market. Moreover, they can generally figure this out on their own.
WP is mainstream for CMS packages, so it has to span a wide range of users.
I have inquired about the work needed to drag it into PHP 7 and while WP is not a problem, the themes and plugins are a problem