ניהול תכנים בצורה פשוטה! צרו "אזורי תוכן", הוסיפו להם תכנים וסדרו אותם בממשק ויזואלי בקלות ובפשטות!
דירוגים
4
עודכן לאחרונה
October 20, 2023
גרסה
0.9
התקנות פעילות
2K

This plugin is designed to help you curate your content.

Assign and order stories within zones that you create, edit, and delete. Then use the handy API functions to retrieve and display your content in your theme. Or for those who are a bit code-averse, try the handy widget.

מאפיינים בולטים של התוסף:

  • הוספה/עריכה/מחיקה של אזורים
  • Add/remove posts (or any custom post type) to/from zones
  • סידור פוסטים באזורי תוכן
  • Limit capabilities on who can add/edit/delete zones vs add content to zones
  • Locking mechanism, so only one user can edit a zone at a time (to avoid conflicts)
  • Idle control, so people can't keep the zoninator locked

This plugin was built by Mohammad Jangda in conjunction with William Davis and the Bangor Daily News.

הוראות שימוש

דוגמא

You can work with with a zone's posts either as an array or a WP_Query object.

WP_Query

$zone_query = z_get_zone_query( 'homepage' ); if ( $zone_query->have_posts() ) : while ( $zone_query->have_posts() ) : $zone_query->the_post(); echo '<li>' . get_the_title() . '</li>'; endwhile; endif; wp_reset_query();

Posts Array

$zone_posts = z_get_posts_in_zone( 'homepage' ); foreach ( $zone_posts as $zone_post ) : echo '<li>' . get_the_title( $zone_post->ID ) . '</li>'; endforeach;

פונקציות

Get an array of all zones:

z_get_zones()

Get a single zone. Accepts either ID or slug.

z_get_zone( $zone )

Get an array of ordered posts in a given zone. Accepts either ID or slug.

z_get_posts_in_zone( $zone )

Get a WP_Query object for a given zone. Accepts either ID or slug.

z_get_zone_query( $zone ); More functions listed in functions.php`
חינםבתוכנית Creator
בביצוע ההתקנה, אנחנו מקבלים את הסכמתך לתנאי השירות של WordPress.com ולתנאים של התוסף של הצד השלישי.
התקנות פעילות
2K
נבדקו עד
5.7.12