Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Anthony D'Arco

    (@adarco)

    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

    Plugin Author Jonny Harris

    (@spacedmonkey)

    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

    https://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

    https://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.

    Thread Starter Anthony D'Arco

    (@adarco)

    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: https://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

    Thread Starter Anthony D'Arco

    (@adarco)

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Right, plugin, but I need more info.’ is closed to new replies.