Skip to content

Insert Content Before or After any Element

Insert Content Before or After any Element

Below are 2 very basic sample functions showing you how you could insert content before or after Total builder modules/shortcodes. Note that the action does pass on both the $shortcode and $atts variables. The $shortcode variable is the name of…

Read more

Custom Post Type Archive Columns

This snippet shows how you could hook into the "wpex_get_grid_entry_columns" filter to alter the default columns for a post type archive. However, if you are using the Post Types Unlimited plugin you have settings available for this so you don't…

Read more

Custom Categories List Separator

By default the Total theme uses a comma to separate categories/terms when displaying them as a list such as in the Post Meta. You can easily alter this default separator using a theme filter like the example below which will…

Read more

Remove Author Links from Post Meta & Author Bio

// Remove author URL from bio add_filter( 'wpex_post_author_bio_data', function( $data ) { unset( $data['posts_url'] ); return $data; } ); // Remove author URL from WordPress the_author_posts_link function add_filter( 'the_author_posts_link', function( $link ) { if ( ! is_admin() ) { return…

Read more

Exclude Passed Events from Builder Elements

/** * Exclude Passed Events from Builder Elements. * * @link https://totalwptheme.com/docs/snippets/exclude-tribe-events-wpbakery/ */ add_filter( 'vcex_query_args', function( $args ) { $showing_events = false; if ( isset( $query_args['post_type'] ) ) { if ( is_string( $query_args['post_type'] ) && 'tribe_events' === $query_args['post_type'] ) {…

Read more
Back To Top