I have installed the Custom Post Type UI plugin, and created a new CPT called 'Holidays'.
I then created a custom taxonomy called 'Type'.
Fine so far and both appear where they should in the menu.
What I then want to do, is add a few items in the 'Type' taxonomy (ski, sun, divng, camping etc...). With the normal WP categories, I know you add new ones when editing the post, these will build up, then you can select (or rather deselect) the ones you don't want the post to be associated with.
Q:I don't want the user to be able to add these, but rather offer a list of pre-defined choices, that I would input from the 'manage custom taxonomy' in the plugin menu. However any I add there just don't show up in the edit post page.
Resolved!
The plugin by default treats taxonomy as 'tags'... to get them to behave like 'categories' so you can select from a list, you must set hierarchy to 'true' in the advanced custom taxonomy options (in the plugin).
Related
So I have created a custom taxonomy and two custom post types and each of these custom post types should be able to be part of a taxonomy term. Right now to add more terms I have to go to the tab beneath the custom post types. I would like to have a menu tab that's visible right away, not hidden beneath the CPT, and I only want one place where you can add more terms to my taxonomy. Is this possible with a plugin or can I easily extend the admin interface?
You can extend the admin interface by creating your own plugin. Check out the plugin handbook to learn more about it. In particular have a look at the administration menus sections.
Use plugin Custom Post Type UI. This has many features available
I have a custom post type called STORIES.
When a user adds a new STORY, I need them to be able to assign a category (or multiple categories) to the post so I can sort them later by category.
To do this, I only want specific categories I assign to the STORY posts to show - NOT all of the wordpress categories attached to every post type.
For example the default Wordpress category is 'Uncategorized'. How do I remove this category (and any othersI don't want) to ONLY show the ones I select via the custom post type editor?
Is there any way I can make this happen?
I am using custom Post Types UI with Advanced Custom Fields.
You can do that with Post Types UI, You will need to create a new taxonomy.
Here is the screenshot explaining that
https://s.w.org/plugins/custom-post-type-ui/screenshot-4.png?r=1180724
Just fill the text boxes with appropriate names, and check STORY under
"Attach to Post Type" option.
After that you will have custom taxonomy like "Story Category" to use for stories only.
I am really working hard to get a specific Post view in my Wordpress blog.
Example
Click http://theunlockr.com/roms/
Then Click http://theunlockr.com/roms/android-roms/
Then CLick http://theunlockr.com/roms/android-roms/asus-roms/
I figured that this is a nested view of categories and subcategories and finally the post in the respective category.
Need some input on how to do this on a basic wordpress blog.
I have already tried page builder and Grid views and alot of plugins, but cant really make this kind of view.
This is done via custom post types and custom taxonomies.
For example, you could create a custom post type rom, and assign the custom taxonomy roms with child categories Android ROMs -> Asus ROMs. This child category is assigned to the custom post type.
I would like to create a custom post type where the posts are formatted as numbered lists on the front-end and in the WP Dashboard editor.
So, in the Dashboard, rather than the standard WP GUI/Text editor box for adding/editing posts, I want a series of text boxes for 1, 2, 3, etc. that builds the post as an ordered list on the frontend.
like
Title:
1.
2.
3.
Is this possible?
To remove the standard editor I used:
'supports' => array('title','custom-fields','revisions',),
when creating my custom post type
so if instead I included:
'supports' => array('title','custom-fields','revisions','listTypeItems'),
is there a way to set up the custom field(s) listTypeItems
if not is there any other way to achieve this?
You should download the Advanced Custom Fields plugin.
http://wordpress.org/extend/plugins/advanced-custom-fields/
I know they have a 'Repeater Field' option that you have to buy for $10.00, which would allow you to continue adding text boxes, (i.e., 1,2,3,4,5...etc.)
If you know you just need three, then this plugin will allow you to create a custom interface on the admin panel where you can design the input boxes and such.
Then, you can create a custom post template, and insert the proper PHP tags to show your data on the page.
Here is the documentation for the plugin. I use it, and it's great!
http://www.advancedcustomfields.com/docs/getting-started/
As part of my theme install, I'd like to add a set of custom field options to the wordpress database that would be available to all posts as long as my theme is active.
For example, I'd like to add these fields:
custom-image-1
custom-image-2
custom-image-3
And also these
custom-image-1-link
custom-image-2-link
custom-image-3-link
And then when a user goes to add or edit a post, they can insert values for each of these fields if they choose to...
You simply have to create a post and add these custom fields once to have them proposed for every next posts (in the custom fields part of the form).
If you need to create a more integrated interface for these extra fields, you might be better off creating a plugin or looking for existing ones, such as this one.
Use the add_meta_box function that comes with WordPress.
https://developer.wordpress.org/reference/functions/add_meta_box/