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?
-
Hi Jraposon
Thanks for your message. Unfortunately, I can’t provide full service support for free on such a small plugin. This plugin is the output of a project I worked on, and I thought I’d just share it to save others time, but it’s really just a starting point, if it doesn’t work then all I can say is sorry. You may need to hire a developer to help you troubleshoot and/or modify it.
In answer to your question, all I can say is that I see no reason why it wouldn’t work, given the correct parameters, but it’s tough to give you a definitive answer without spending time analyzing it.
What I can say is that the rules you put into the widget get passed directly to wp functions (refer to lines 206 – 216), so you can consult the documentation for those functions and/or do your own troubleshooting with different query parameters.
Perhaps not the answer you hoped for, but I hope it helps a little at least.
Best wishes
Paul
- The topic ‘Using Custom Post Type’ is closed to new replies.