WordPress.org

Ready to get started?Download WordPress

Forums

Custom Content Type Manager
Pages being added to RSS (11 posts)

  1. eagle41
    Member
    Posted 2 years ago #

    Hey, fireproofsocks, Thanks so much for this plugin! I've tried a half dozen of these type plugins and none function as well as this one. It seems when this plugin is enabled, pages start being added to the rss feed as well as posts. Is there anyway of changing this behavior so that the rss only shows posts? I'm using the latest cctm-dev and have tested this with a clean install of WP and only this plugin uploaded and enabled. Thanks in advance!

    http://wordpress.org/extend/plugins/custom-content-type-manager/

  2. fireproofsocks
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the note!

    Hmmm... that's a good question. I think it probably has to do with the "Has Archives" feature (see Issue 13)... maybe I'm wrong, but that query caused me all kinds of trouble having to prevent WP from doing anything silly... see these related issues:
    * http://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=108
    * http://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=111
    * http://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=112

    I suspect there's some other aspect of that filter that I'm modifying that affects the RSS stuff. This would make a great feature request in the bug tracker. I'm eyeballing these articles:
    http://www.wpbeginner.com/wp-tutorials/how-to-add-custom-post-types-to-your-main-wordpress-rss-feed/
    http://wordpress.org/support/topic/custom-post-types?replies=11
    http://core.trac.wordpress.org/ticket/12943

    It might be nice to have a checkbox specifying whether or not the custom post-type should show up in RSS feeds.

  3. fireproofsocks
    Member
    Plugin Author

    Posted 2 years ago #

  4. eagle41
    Member
    Posted 2 years ago #

    I was wrong. To stop pages from showing in RSS in cctm-dev release, I used loader.php from .0.9.3.3 release which is minus the "Forces custom post types to sort correctly" filter and the "Forces front-end searches to return results for all registered post_types" filter. This seems to be working.

  5. fireproofsocks
    Member
    Plugin Author

    Posted 2 years ago #

    Can you clarify that? Are you saying that the loader.php from the 0.9.3.3 version does what you want whereas the loader.php from the current dev version does not do what you want? I just want to make sure. I think it's still a valid feature request.

  6. eagle41
    Member
    Posted 2 years ago #

    It looks my comment previous to "I was wrong" didn't get posted, so that probably didn't make much sense. I had previously tried commenting out the "Enable archives" from the correct loader.php(cctm-dev release) and this didn't work. Wow, I need some sleep!

  7. eagle41
    Member
    Posted 2 years ago #

    Correct! Using the loader.php from the 0.9.3.3 version with the cctm-dev release stops the behavior of pages showing in the RSS. This is what I was looking to do.

  8. fireproofsocks
    Member
    Plugin Author

    Posted 2 years ago #

    Ok, cool. Thanks for clarifying. So I need to offer some options on how loose that query gets... it'll be a good feature request to optionally include post types in the RSS feed. We've just narrowed down the problem. Get some sleep!

  9. fireproofsocks
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm.... now that I'm looking at it, I can't reproduce it. How exactly are you viewing your RSS feed? Via a link like http://yoursite.com/feed ? Is see that commenting out the following filters does change what's listed:

    // Forces custom post types to sort correctly
    	add_filter('posts_orderby', 'CCTM::order_posts');
    
    	// Forces front-end searches to return results for all registered post_types
    	add_filter('pre_get_posts','CCTM::search_filter');

    But if that's what's feeding the RSS, then it's gonna be tricky isolating that from the search results.

  10. eagle41
    Member
    Posted 2 years ago #

    Yes, I'm viewing the RSS with the yoursite.com/feed. Just to be clear, I have no idea what I'm doing and probably shouldn't be commenting out lines of code I don't understand, but while I was looking at some of the links you provided, I noticed in issue 108, comment #14, someoene talking about loader.php. This got me comparing the cctm-dev and 0.9.3.3 versions. The two lines you mention above were the only difference in the two, I think. I haven't had a chance to do much testing, but yes, the cctm-dev release seems to be working well with the above 2 lines commented out of loader.php. Hopefully this weekend I can take a closer look. Thanks for your help and for this awesome plugin, as well. I don't think there are any other plugins like this where you can make the custom post type and all the fields to go with it so simply! If there is, I've never seen it!

  11. fireproofsocks
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the update! I think I did find a way to isolate the RSS stuff -- what I'll do is create a checkbox when you define the content type so you can determine whether or not you want the posts in that content type to show up in the RSS feed or not (see issue 186).

    Glad you like the plugin -- *I* like it and I think it'll grow in popularity as I implement the envisioned features. It's not the only one out there, though. I try to keep a list updated of similar plugins in the wiki... some of them have some irksome limitations, but others offer features I don't yet support.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic