WordPress.org

Ready to get started?Download WordPress

Forums

podPress
[resolved] Podpress and custom permalinks (5 posts)

  1. Jpyper
    Member
    Posted 2 years ago #

    I've read through a couple of long forum threads where the same problem seemed to be happening but I still couldn't get results following those instructions.

    I have a custom permalink structure of /%category%/%/postname%/.
    In my Feed/iTunes settings my podcasts are located at /feeds/podcasts. When I browse to that page it shows me all the podcast files, but is not like a feed. feed validator says the page is not a feed. /?feed=podcast DOES come up as a feed, but gives a 404.

    I currently have no file type or category filters on. Itunes gives me an error because it's trying to pull from /?feed=podcast. I have multiple posts with podcasts attached to them. I resave my permalinks after everything I try and nothing changes with the feed validator.

    website is http://www.the-pathway-church.org. some insight would be much appreciated.

    Thanks!

    http://wordpress.org/extend/plugins/podpress/

  2. ntm
    Member
    Plugin Author

    Posted 2 years ago #

    The 404 error occurs because this RSS feed does not contain posts.
    Are you sure that you have posts with podPress attachments?

    Your podcast file are located in the folder /feed/podcast (each folder name without the "s"). Since this is a real folder the URL http://www.the-pathway-church.org/feed/podcast (which would be the equivalent Permalink of http://www.the-pathway-church.org/?feed=podcast) this URL points the real folder and not the podcast feed.

    A solution could be:
    - store the podcast episode file e.g. in /wp-content/uploads/podcasts
    - remove or rename the folder /feed/podcast
    - only to be sure: save the Permalink settings again (leave them as they are)
    and
    - attach the media files via the podPress box below the WP post editor to blog posts

  3. Jpyper
    Member
    Posted 2 years ago #

    That definitely makes sense about the folder path being the same as the feed URL I want.

    I changed the folder to /feed/podcasts (added the s) so the URL's will not conflict.

    I am still getting a 404 though and I am certain that I have multiple posts with podcasts attached to them.

    My podcasts are attached to a custom post type. I just tried attaching a podcast to a regular post and it showed up in the feed. So it looks like something is wrong with podPress and my custom post type.

    I have my post type selected to have a podPress metabox in the General settings. Is there something I need to do different with the feed URL or the feed settings to make this work with a custom post type? My post type is "sermon".

    When I am declaring my custom post type in code, do I need to include something for podPress in the "supports" field like I do for title, editor, thumbnails, etc.?

  4. ntm
    Member
    Plugin Author

    Posted 2 years ago #

    I'm not very familiar with the whole custom post type subject. But I have read about it e.g. here and here.

    The feed URL for these post of the custom post type sermon is http://www.the-pathway-church.org/sermon/feed/
    This feed uses probably the podPress settings on page podPress > iTunes/Feed Settings > Settings for the default Feeds. But I'm not entirely sure about that. The feed title "The Pathway Church ยป Teaching Series" suggests that it is a category feed. Do you use custom taxonomy with the name "Teaching Series"?

    May I ask which plugin do you use to manage the custom post types?
    Custom Post Type UI and Select Simple Custom Post Type Archives Simple Custom Post Type Archives ?

    If you want to customize the feed of posts of a certain custom post type then you could create new podPress Feed (podPress > iTunes/Feed Settings > podPress Feeds). But it would be necessary to add some code to the functions.php file of your theme.

    add_filter( 'pre_get_posts', 'my_get_posts' );
    function my_get_posts( $query ) {
    	if ( is_feed() && false == $query->query_vars['suppress_filters'] ) {
    		if ('sermons' == $query->query_vars['feed']) {
    			$query->set( 'post_type', array( 'sermon' ) );
    		}
    	}
    	return $query;
    }

    This code makes sure that only posts of the custom post type sermon (with an podPress attachment) are in the feed. In this example the podPress Feeds has the slug name sermons. The URL to that feed would be "www.example.com/feed/sermons".
    Note: it is necessary to save the Permalink settings after you have created, activated or renamed a podPress Feed.

  5. Jpyper
    Member
    Posted 2 years ago #

    Firstly, @amandato could you troll any harder for users?

    I'm happy with podPress, I know it's just me doing something wrong.

    Secondly, It's working now. All I needed to do was use /sermon/feed as my feed URL, that's where tall the posts were.

    Thanks for your help ntm. I don't think I would have caught that my feed url and podcast storage folder were the same path.

    I wasn't using a plugin for my custom post types, I had written the code into functions.php to create them. And I did also have a custom taxonomy with them.

    Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags