Using Custom Post Type
-
Hi,
I made a custom post in which I put there all the posts that i needed to display using this plugin. Unfortunately, I am not successful with any attempts I made, no matter how feasible it can be. I also followed the parameters in WP but still failed.
Examples of codes I tried:
1.) category_name=press-media
–> this is the slug of my category. I used this in both Posts and in the custom post type i made. But this displays ONLY the posts I made under Posts.
2.) cat=16
–> same thing with #1.
3.) $args = array(‘post_type’ => ‘press-and-media’,
‘orderby’ => ‘post_date’);
–> i am trying to access it through taxonomy parameterSo the question is, in widgets, using the form there (where we input cat=1), how can I access a custom post type?
- The topic ‘Using Custom Post Type’ is closed to new replies.