Quantcast
Channel: Active questions tagged feed - Stack Overflow
Viewing all articles
Browse latest Browse all 549

wordpress using slug 'feeds' for post_type 'feed'

$
0
0

Created post_type 'feed' - it works correctly, posts are showing in admin panel, data storedBut I want to use slug 'feeds' for the these posts.Trying this code but return error"wp_die" "this is not a valid feed template"when open links : www.sitename.com/feeds/test_postfile single-feed.php are created

register_post_type('feed','labels' => ['all_items' => 'All feeds','name' => 'feed',                ],'public' => true,'has_archive'   => false,'rewrite' => array( 'slug' => 'feeds' ),'hierarchical' => true,'menu_position' => 10,'capability_type'     => 'page','supports' => ['title','editor','thumbnail'],            ]        );    }

Viewing all articles
Browse latest Browse all 549

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>