WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type RSS feed
Right, plugin, but I need more info. (5 posts)

  1. adarco
    Member
    Posted 1 year ago #

    Ok, so I see a couple people think this plugin doesn't work, when it really just doesn't do what they think it does. I am sure this is what I want. I have a custom post type that I want a feed of only the posts within that post type. My problem is that I don't actually understand how to make the plugin work. What do I need to do to actually get it to do similar to this:

    http://sample.com/feed/?post_type=book

    Does that make sense?

    Thank you,
    Anthony

    http://wordpress.org/extend/plugins/custom-post-type-rss-feed/

  2. adarco
    Member
    Posted 1 year ago #

    I hate to be a pest, but I was really hoping to get further explanation on how this actually works. I know its the plugin I need, but I need it to work per my previous question.

    Thank you,
    Anthony

  3. Spacedmonkey
    Member
    Plugin Author

    Posted 1 year ago #

    Hello, I am the developer that wrote Custom post type rss feeds plugin. In answer to your question, you can generate a feed from a custom post type. In fact wordpress does it out of the box. However it only works if the custom post type is registered with the "has_archive" flag set to true and "public" flag set to true.

    You can find out if that is the case by going to the archive page for custom post type. An example would look like

    http://sample.com/book/

    This page would list the latest book posts added to your site. To access the feed, simply add /feed to the end of the url, like so

    http://sample.com/book/feed/

    If you are using a plugin or theme that does that registering of plugins for you, then this plugin may not work for you. This plugin is really designed for developers.

  4. adarco
    Member
    Posted 1 year ago #

    Actually, I do register the custom post types, my code looks like this:

    //register custom post type Funerals content
      register_post_type( 'sjc-funeral',
        array(
          'labels' => array(
            'name' => __( 'Funerals' ), //this name will be used when will will call the investments in our theme
            'singular_name' => __( 'Funerals' ),
    		'add_new' => _x('Add New', 'Funerals'),
    		'add_new_item' => __('Add Funerals'), //custom name to show up instead of Add New Post. Same for the following
    		'edit_item' => __('Edit Funerals'),
    		'new_item' => __('New Funerals'),
    		'view_item' => __('View Funerals'),
          ),
    	  'has_archive' => true,
          'public' => true,
    	  'menu_position' => 100,
    	  'show_ui' => true,
    	  'hierarchical' => false, //it means we cannot have parent and sub pages
    	  'capability_type' => 'post', //will act like a normal post
    	  'rewrite' => array('slug' => 'sjc-funerals'), //this is used for rewriting the permalinks
    	  'query_var' => false,
    	  'supports' => array( 'title',	'editor', 'thumbnail', 'excerpts', 'revisions','author') //the editing regions that will support
        )
      );

    when I tried: http://www.stjohnofthecross.org/sjc-funerals/ I am getting 404. Same when I added the /feed.

    That is why I came to your plugin, I was under the impression that would fix my problem. However, now I'm not sure how to fix this.

    Thank you,
    Anthony

  5. adarco
    Member
    Posted 1 year ago #

    I was wondering what your thoughts were on the above code on if your plugin can help/what is wrong with the above code on why your suggestion won't work. I feel like I'm missing something stupid.

    Thank you,
    Anthony

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.