How to Apply different sorts for Desktop and Mobile devices

Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInPrint this page

The Advanced Post Types Order plugin comes with the powerful Conditionals feature, which helps to apply a sort on a specific area.

Through the same Conditionals, a Mobile check is also provided, to narrow down the order appliance only for phone devices.

The Mobile check reply on the internal WordPress wp_is_mobile() which checks against the server $_SERVER[‘HTTP_USER_AGENT’] environment variable. This is fast and reliable.

Once the Sort Created, if required to apply for mobile, a conditional should be created like the image:


Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments