Forums

How does iOS app find posts?

  1. I've installed a plugin on my site called "simply exclude" that removes certain categories from the "homepage" of my wordpress site. But in doing this, it seems to prevent the iOS app from seeing these posts as well.

    How does the iOS app find it's posts? Does it just look at the homepage? Does it look at the RSS feeds (which all posts are set to show up in)?

    I'd like to word with the author if this plugin, if possible, to resolve this issue, but I need more info.

    Thanks!

  2. Hi, it seems that the plugin is filtering on pre_get_posts:

    http://plugins.trac.wordpress.org/browser/simply-exclude/trunk/simplyexclude.php#L1898

    It has an exception for the wp-admin interface:

    // We don't process filtering for admin. ever!
    	                if (is_admin())
    	                        return $query;

    I guess the author should add another for XML-RPC calls:

    // We don't process filtering for admin or XML-RPC. ever!
    	                if (is_admin() || ( defined( XMLRPC_REQUEST ) && XMLRPC_REQUEST ) )
    	                        return $query;
  3. Jorge,

    This is great. Only issue was missing single quotes. =)

    if (is_admin() || ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ))
    			return $query;

    (note around the "defined('XMLRPC_REQUEST')")

    But this seems to have worked. Thanks!!! I'll note this to the author.

  4. Right, I should have tested it ;)

  5. ah, no problem. I can confirm it worked. I just need to get the change pushed to "Simply Exclude".

    Thanks again Jorge!

Topic Closed

This topic has been closed to new replies.


About this Topic

Tags

No tags yet.