PHP Developers Network
http://forums.devnetwork.net/

wordpess
http://forums.devnetwork.net/viewtopic.php?f=1&t=144260
Page 1 of 1

Author:  Vegan [ Wed Sep 13, 2017 7:18 pm ]
Post subject:  wordpess

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?

Author:  requinix [ Wed Sep 13, 2017 7:42 pm ]
Post subject:  Re: wordpess

So I just went and picked a blog from some source. It uses category URLs like
Code:
/category/name/

Trying
Code:
/category/name1,name2/

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.

Author:  Vegan [ Wed Sep 13, 2017 8:18 pm ]
Post subject:  Re: wordpess

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;

Author:  requinix [ Wed Sep 13, 2017 9:32 pm ]
Post subject:  Re: wordpess

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.

Author:  Celauran [ Thu Sep 14, 2017 5:23 am ]
Post subject:  Re: wordpess

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.

Author:  Vegan [ Thu Sep 14, 2017 4:36 pm ]
Post subject:  Re: wordpess

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

Author:  Celauran [ Thu Sep 14, 2017 8:31 pm ]
Post subject:  Re: wordpess

Well, there's always add_rewrite_rule.

Author:  Vegan [ Fri Sep 15, 2017 5:25 pm ]
Post subject:  Re: wordpess

Celauran wrote:
Well, there's always add_rewrite_rule.


I do not understand why rewrite is not offered standard

it makes using WP more powerful for sophisticated users

Author:  Celauran [ Sat Sep 16, 2017 5:22 am ]
Post subject:  Re: wordpess

Sophisticated users aren't the target market. Moreover, they can generally figure this out on their own.

Author:  Vegan [ Sat Sep 16, 2017 3:47 pm ]
Post subject:  Re: wordpess

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

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/