Gorakh Shrestha on "Custom Post Type Redirects To Home"

ساخت وبلاگ

I've seen this question asked many times with older versions, but I'm still running into this issue. I've created a custom post type and when I try to go to its URL, I end up loading the home page - the URL looks write, but the home page displays.

Here is my custom post type:

register_post_type('petpoint_listing', array( 'labels' => array( 'name' => __( 'Pet Listings' ), 'singule_name' => __( 'Pet Listing' ) ), 'public' => true, 'has_archive' => true, 'menu_icon' => $this->pluginurl . '/images/admin_menu.png', 'rewrite' => array('slug' => 'adopt', 'with_front' => false), 'supports' => array( 'title' ), ) );

I have gone to Settings > Permalinks and selected "Post name" and hit Save. I have deactivated and reactivated my plugin numerous times. What am I missing?

Thanks!

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 60 تاريخ : پنجشنبه 27 اسفند 1394 ساعت: 12:59