Dante

Dante theme x custom post tags

By | Wordpress | No Comments

Dante theme gives you the ability to add tags to your posts but… surprisingly it won’t show up with you try to see the posts associated with that custom post type.

I looked online and found this thread and there’s a simple code that you have to add to your functions.php:

function wpse28145_add_custom_types( $query ) {
    if( is_tag() && $query->is_main_query() ) {

        // this gets all post types:
        $post_types = get_post_types();

        // alternately, you can add just specific post types using this line instead of the above:
        // $post_types = array( 'post', 'your_custom_type' );

        $query->set( 'post_type', $post_types );
    }
}
add_filter( 'pre_get_posts', 'wpse28145_add_custom_types' );

Dante Theme x TinyMCE issue

By | Wordpress | No Comments

I’ve been working on this project for a coulpe of weeks using the Dante theme and suddenly the page builder stopped working. I tried to activate it inside the post editing page and all I got was a message like Loading…, I checked the console and there was a TinyMCE warning and when i changed i received an error that it couldn’t save.

I then went to Google to try to find people having the same problem and all I found was a thread on their support but I couldn’t access because there was a problem with my client’s purchase code so we lost a couple of days trying to get access. Once we were in I found a few other threads and no solution from them. There was only one guy that found out the problem and I am sharing here because it would be easier to find and access.

You probably get this error because, like me, you entered text mode and then tried to activate page builder. You simply have to go to Visual Mode and then activate page builder!

Text Mode > Visual Mode > Page Builder

Not sure if this was related to a plugin, I saw some people saying it was ACF, but either way… Only activate Page Builder when in Visual Mode.