Support » Plugin: WPtouch Mobile Plugin » [Plugin: WPtouch] Removing excluded categories from mobile feed

  • Ryan


    First: absolutely fantastic plugin.

    The one problem I’ve faced using the non-Pro version is that the category exclude function isn’t as robust as (I think) it should be.

    Usually the reason for excluding categories is that certain categories shouldn’t be in the regular “flow” of the site. The current function only removes these from the is_home() page — but they still appear on archive pages and (most essentially) in the feed served up for mobile browsers.

    This is a pretty easy fix, but is going to be annoying having to replace this every time the plugin is upgraded (as the regular plugin doesn’t offer any custom themes/functions):

    To fix this I simply opened /wp-content/plugins/wptouch/themes/default/functions.php and changed:

    Ln 14:
    if ( $query->is_home ) {

    if ( $query->is_home || $query->is_archive || $query->is_feed ) {

    Hope it helps someone else, and would be great to see support for this make its way into the non-Pro plugin. It’s not exactly advanced functionality, seems like it was just overlooked.


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WPtouch] Removing excluded categories from mobile feed’ is closed to new replies.