-
You can use Options API
or Setting API to store the data in the database. Write a plugin to create a meta box for the introduction text and show that text on thearchive-unicorn.php
. -
Or you can utilize the
description
parameter when you
register_post_type
and print it in thearchive-unicorn.php
like this:$unicorn_obj = get_post_type_object('unicorn'); if ( !empty($unicorn_obj) ) { echo $unicorn_obj->description; }
-
Or you can
add_meta_box
, e.g._is_sticky_unicorn
, to theunicorn
custom post type then use a query to show the post marked sticky on the very top of thearchive-unicorn.php
:if( get_post_meta( $post->ID, '_is_sticky_unicorn', true ) ) { // show your sticky post here } else { // show the rest here }
Related Posts:
- Custom Post Type Archives by Year & Month?
- Get custom post type slug for an archive page
- Page Template as Custom Post Type Archive
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Proper way of making custom post type landing page or archive page
- Custom Post Type Archives by Date with Custom Permalink
- Change title in head on Archive page
- Custom Post Type Archives with 0 Posts Redirects as 404
- Page is defaulting to archive page and not designated template
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- Assign Page Template Within A Custom Post Type
- paginate function in archive for custom-post-type
- Custom Post Type – Archive page title
- Custom post type archive sorted and grouped by date in post meta field
- How to create archive page for taxonomy terms within custom post type
- How to make an archive page displaying posts in a date range
- WordPress custom post type archive with description
- CPT: archive-cpt.php VS custom page template
- Custom-post-type-archive: posts sorted/filtered by year?
- How to list custom post types?
- Custom post type archive page pagination
- Second Custom Post Type Archive
- is_main_query() not working for WP REST API
- CPT Archive with core Category
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- get the custom post type title/name
- URL of a custom post type’s post format archive?
- Create template for taxonomy results limited by Custom Post Type
- WordPress showing archive.php instead page
- Custom post type archive page blank
- How to display custom post in archive section of the wordpress page?
- What’s the name of the custom post type yearly archive template?
- How can I use archive-{post_type}.php theme template?
- Return the name of the post type
- How to integrate single and archive templates for custom post type in any WordPress theme
- Use the custom post type archive for taxonomies?
- Archive page for custom post type and custom taxonomy
- How to have multiple archive pages?
- Create a Custom Path to Archive
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- WordPress sitemap with Custom Post Types
- Is possible register two archive pages for single custom post type?
- WordPress Page hierarchy ( parent is singular of custom post types slug ) is returning not found
- Custom Post type page content (archive page)
- Group custom post type posts by month
- Creating an archive page or simple template to list all values of a custom field of specific post type listing
- Do not show child pages within a file page
- Tell wordpress to show a single page instead of an archive page
- Custom Post Type archive page listing a 404 or single post
- Want to display my custom date archive to date.php but dont know how
- Show index and not the archive for “Dog Custom Post” with default slug
- Rewriting archive page slug to be different than custom post type slug
- Site loads very slow for archive custom post type page
- Templates list in “Page Attributes” metabox is inaccurate
- Stop Custom post type from being searched via URL
- Custom post type category page not working
- paging is not working properly on news archives page [duplicate]
- How can I set up the URL for a category archive for a custom post type?
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- Pagination not working for archive
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Remove plugin’s custom post type archive page and single pages [closed]
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query
- Ordering Posts List By Taxonomy Terms?
- Add Settings to Custom Post Type
- Show Custom Post Type by Author
- Custom post type archive with pagination?
- Archive page for taxonomy of custom post type
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Custom query variable – get wordpress to redirect to nice permalink url
- Multiple portfolios with one custom post type?
- Add custom post type archives to search results?
- Custom-Posttype & Custom Taxonomy WP_Query
- Page template with different page and post content
- Custom Post Type with archive page but no detail page
- Multiple templates for single custom post type
- Pages Become “Archive” Instead of Using Page Template
- Multiple single templates?
- Custom URL redirect in WP
- Custom Post type & Taxonomy 404
- page template for custom post type
- Custom Post Type with Configurable Sidebar via ACF
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- Archive page of CPT’s custom Taxonomy
- Can I automatically assign a page template to a custom post type (i.e page-slug.php file)
- How to create additional rendering for custom post types?
- Set a template on a custom post in the plugin
- Archive for custom taxonomy
- Custom taxonomy with custom post type archive page
- date archive future posts
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- Archive page of filtered posts
- single-mySlug.php works: archive-mySlug.php does not. Custom Post Type
- has_archive for default post type
- Custom Post Type Template Based on Page Slug?
- Pagination for Custom Post Type with Multiple Types
- Custom Post Type Archive Title Lowercase
- Show custom category archive as front page and remove taxonomy slug from urls