PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Sep 26, 2017 1:15 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: wordpess
PostPosted: Wed Sep 13, 2017 7:18 pm 
Offline
Forum Contributor

Joined: Fri Sep 05, 2008 3:34 pm
Posts: 480
Location: Victoria, BC
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?

_________________
Hardcore Games Legendary is the Only Way to Play!
Vegan Advocate 16 lbs grain to make only 1 lb meat, water for 6 months of showers and 34.1 lbs carbon dioxide
My sites are made with WordPress, which is a content management system, Joomla and Drupal are some alternatives


Top
 Profile  
 
 Post subject: Re: wordpess
PostPosted: Wed Sep 13, 2017 7:42 pm 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6556
Location: WA, USA
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.


Top
 Profile  
 
 Post subject: Re: wordpess
PostPosted: Wed Sep 13, 2017 8:18 pm 
Offline
Forum Contributor

Joined: Fri Sep 05, 2008 3:34 pm
Posts: 480
Location: Victoria, BC
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;

_________________
Hardcore Games Legendary is the Only Way to Play!
Vegan Advocate 16 lbs grain to make only 1 lb meat, water for 6 months of showers and 34.1 lbs carbon dioxide
My sites are made with WordPress, which is a content management system, Joomla and Drupal are some alternatives


Top
 Profile  
 
 Post subject: Re: wordpess
PostPosted: Wed Sep 13, 2017 9:32 pm 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6556
Location: WA, USA
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.


Top
 Profile  
 
 Post subject: Re: wordpess
PostPosted: Thu Sep 14, 2017 5:23 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6353
Location: Montreal, Canada
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.

_________________
Supported PHP versions No longer supported versions


Top
 Profile  
 
 Post subject: Re: wordpess
PostPosted: Thu Sep 14, 2017 4:36 pm 
Offline
Forum Contributor

Joined: Fri Sep 05, 2008 3:34 pm
Posts: 480
Location: Victoria, BC
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

_________________
Hardcore Games Legendary is the Only Way to Play!
Vegan Advocate 16 lbs grain to make only 1 lb meat, water for 6 months of showers and 34.1 lbs carbon dioxide
My sites are made with WordPress, which is a content management system, Joomla and Drupal are some alternatives


Top
 Profile  
 
 Post subject: Re: wordpess
PostPosted: Thu Sep 14, 2017 8:31 pm 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6353
Location: Montreal, Canada
Well, there's always add_rewrite_rule.

_________________
Supported PHP versions No longer supported versions


Top
 Profile  
 
 Post subject: Re: wordpess
PostPosted: Fri Sep 15, 2017 5:25 pm 
Offline
Forum Contributor

Joined: Fri Sep 05, 2008 3:34 pm
Posts: 480
Location: Victoria, BC
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

_________________
Hardcore Games Legendary is the Only Way to Play!
Vegan Advocate 16 lbs grain to make only 1 lb meat, water for 6 months of showers and 34.1 lbs carbon dioxide
My sites are made with WordPress, which is a content management system, Joomla and Drupal are some alternatives


Top
 Profile  
 
 Post subject: Re: wordpess
PostPosted: Sat Sep 16, 2017 5:22 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6353
Location: Montreal, Canada
Sophisticated users aren't the target market. Moreover, they can generally figure this out on their own.

_________________
Supported PHP versions No longer supported versions


Top
 Profile  
 
 Post subject: Re: wordpess
PostPosted: Sat Sep 16, 2017 3:47 pm 
Offline
Forum Contributor

Joined: Fri Sep 05, 2008 3:34 pm
Posts: 480
Location: Victoria, BC
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

_________________
Hardcore Games Legendary is the Only Way to Play!
Vegan Advocate 16 lbs grain to make only 1 lb meat, water for 6 months of showers and 34.1 lbs carbon dioxide
My sites are made with WordPress, which is a content management system, Joomla and Drupal are some alternatives


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Exabot [Bot] and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group