این افزونه با آخرین 3 نسخه اصلی وردپرس تست نشده است. ممکن است دیگر نگهداری یا پشتیبانی نشود و ممکن است هنگام استفاده با نسخه های جدیدتر وردپرس مشکلات سازگاری داشته باشد.

Seamless Sticky Custom Post Types

توضیحات

There are no settings or custom functions. Set custom post types to be sticky just as you would with regular posts, and those post id’s will be included in the result of get_option( 'sticky_posts' ).

PLEASE NOTE In order to integrate as seamlessly as possible, this plugin will not alter any queries or filter any functions. If your sticky posts aren’t appearing the way you want, there’s probably a good reason in your query (Is ignore_sticky_posts set to true? Is post_type set to a different type?). This plugin may be most appropriate for developers who just want the native sticky post UI and no other superfluous features.

If you find this plugin useful, please rate it accordingly.

عکس‌های صفحه

  • The sticky post checkbox that appears for regular posts will be available for your custom post types.
  • As will the sticky post checkbox in quick edit.

نقد و بررسی‌ها

آکتوبر 19, 2018
This plugin is really helpful. If you have no skill to edit functions.php well and there are many custom post type, You sholud use this.Gguaranteed working.
جنوری 18, 2018
A very nice plugin enabling without further ado a functionality that should have been native. If you’re actively using the sticky post functionality for CPTs, it might be tricky to use some queries. For example, this will not work $featured_post_args = array( 'post_type' => 'custom_post', 'posts_per_page' => 1, 'post__in' => get_option( 'sticky_posts' ), 'ignore_sticky_posts' => 1 ); and you need to use something like array_filter(get_option( 'sticky_posts' ), function($id) { return get_post_type($id) == 'custom_post' && get_post_status($id) == 'publish'; }); But this is a problem of WP itself and not of the plugin.
آکتوبر 17, 2016
Installed, added Stick Post support… no messing about. Cheers!
سپتامبر 3, 2016
Like many others I really wish this functionality (support for Sticky Custom Posts) would be added to the core – it makes no sense that it isn’t. That said, without core support for this basic function, THIS plugin is the best option available, and just does exactly that – it adds the “Stick this post to the front page” checkbox to your registered custom post types. The folks who have given this a low rating appear to not understand how to actually USE sticky posts – WP does not do anything other than provide a mechanism to ‘flag’ a post as sticky, or not sticky. It’s then up to the THEME developer to write the necessary loops to DISPLAY sticky posts as the site owner wants them to appear. If your Theme doesn’t manage the sticky posts the way you want, and you don’t have the ability to add code to your functions (which can be as simple as copy & paste if you find the right code), then simply choose another Theme – don’t blame this plugin developer for a lack of Theme support. This plugin deserves a 5-star rating because it does exactly what it claims to do, and it’s free. What more can you ask?
خواندن تمامی 20 نقد و بررسی‌

توسعه دهندگان و همکاران

“Seamless Sticky Custom Post Types” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

ترجمه “Seamless Sticky Custom Post Types” به زبان شما.

علاقه‌ مند به توسعه هستید؟

کد را مرور کنید, را بررسی کنید مخزن SVN, یا مشترک شوید گزارش توسعه توسط RSS.