Posts by ChapterThemes

576 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
ChapterThemes says

Seem like this is working:

if ( !is_admin() && $query->is_main_query() ) {
            if ( $query->is_tax( 'custom_tax_name' ) ) {
                $query->set( 'post_type', 'custom_posttype' );
            }
        }
576 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
ChapterThemes says

Just found out that most checks like is_single() etc. don’t work inside that filter.

576 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
ChapterThemes says

Hi Cubell,

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?

576 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
ChapterThemes says

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 );
576 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
ChapterThemes says

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?

576 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
ChapterThemes says

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

Works nice!

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" />');
576 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
ChapterThemes says

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..

576 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
ChapterThemes says

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…

576 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
ChapterThemes says

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

576 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
ChapterThemes says

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?

by
by
by
by
by
by