Just found out that most checks like is_single() etc. don’t work inside that filter.
I’ve worked with the pre_fet_posts filter as wel. Only thing that bugged me with that is that in some situations it makes the menu disappear.
Others suggest that you than should put in the nav_menus post type to get the menu back.
I don’t like the idea of using that filter and then to define all post types instead of just ‘adding’ one to the main loop.
Can you check for current post type inside that filter?
Putting the following snippet inside my custom taxonomy template did the trick:
global $wp_query; $args = array_merge( $wp_query->query, array( 'post_type' => 'ca_cpt_inspiratie' ) ); query_posts( $args );
I’ve created a custom post type with a custom taxonomy. has_archive and everything is set to true.
Taxonomy archive pages work but they just won’t show the custom post type posts from that particular taxonomy term.
I’ve done this before but can’t seem to get it working again.
Any pointers? This should easy right?
http://jqueryui.com/download/ Bottom left corner, there is a box for CSS scope. Use this to limit style to a particular section of the page
Problem was still when using the jQuery Datepicker on an input field, since that script is rendered outside the scope – but that could be fixed with this:
jQuery("#ui-datepicker-div").wrap('<div class="your-css-scope" />');
Images and photos you see used in a template are almost never included in the actual template itself, also because of copyrights.
They’re used to present the template on how it could look like with some content in it but the actual template file is filled with empty placeholders.
Maybe that’s also the case with the product mockup..
You’re right, that are the only options.
To bad you can’t create a custom dashboard which you can set custom widgets for – would be great…
I’ve created a custom admin page – no custom post type.
Inside this admin page i have 2 columns for metaboxes just like on a post page, which you can switch on and off and set to 1 or 2 columns – but it’s a separate empty page not related to any page/post/posttype.
I wondered if there’s a way to get it like for example the dashboard page, which can go up to 4 columns with widgets/metaboxes
Is it possible to create an custom admin page which has more than the standard 2 column layout – but for example has 4 columns, like the dashboard on a large viewport?
There are no ‘how to use an admin dashboard’ tutorials that i know of.
If you are familiar with HTML templates, than you know everything there is. Because that’s just what admin templates are: HTML templates for an admin screen or whatever you want to use them for – it are just the styled templates that you use to create the CMS out of.
There’s no predefined way on how to use them or where to use them. Backend programming you have to do by yourself with PHP and/or whatever else you need.
If you don’t know how to program a backend for youself, or use for example WordPress admin functions/hooks/filters – then i’m afraid the story ends with that.