-
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
- Remove date rewrite rule for custom post type archive page
- Archive not sorting correctly
- Multiple single templates?
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- Custom post type, global categories — what’s the template name?
- how to remove pages loading with the archive templates
- Archieve.php not loading for custom post type
- multiple custom post type on category page
- Custom URL redirect in WP
- Custom Post type & Taxonomy 404
- WordPress Picks Up Wrong Template for Custom Post Type Archive Page
- How to hyperlink content from archive page with custom post-type
- Associate page w/ specific single post template?
- Set thumbnail and title for a post type archive (not post itself!)
- How to set up Custom Post Type archive page as Front page
- Url to archive page for custom post type
- How to display CPT archives?
- Custom meta Title for custom post type archive from page
- Excluding a Custom Post Type with a specific tag using pre_get_posts
- Taxonomy archive 404ing (not term archive)
- Include php on a specific page template
- get comments by current user inside page template
- page template for custom post type
- Page Template Dropdown For Custom Post Types
- Assign CPT archive page attributes
- Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?
- current-menu-item not added on page showing custom post type (rendered with archive template)
- Custom taxonomy or custom page templates?
- Dynamically insert an article at the top of a taxonomy archive – or?
- Alphabetically sort a taxonomy.php template by post title
- Archiving custom post content?
- archive as a page, so that it can be added in the wp_menu_nav
- Can anyone clarify difference between archive-{posttype}.php, type-{posttype} and date.php?
- Custom Permalinks For CPT and pages with parent. Advanced WordPress
- Permalink problems with custom post type and custom taxonomy
- sort CPT on Custom Taxonomy Archive page