// Hide portfolio media block on password protected posts add_filter( 'wpex_portfolio_single_blocks', function( $blocks, $instance ) { // Don't mess with…
Make sure to change the 300 to the ID of your menu item you are targeting. You can view this…
// Enable Lightbox Title for Portfolio Media Gallery // Uses image alt attribute for the title add_filter( 'wpex_portfolio_gallery_lightbox_title', '__return_true' );
// Use the portfolio_tag taxonomy for the filter on Total VC GRID module with a unique // ID of "my-custom-grid"…
function myprefix_vcex_shortcode_loop_atts( $atts ) { // Target portfolio grid if ( isset( $atts['base'] ) && 'vcex_portfolio_grid' == $atts['base'] ) {…
function myprefix_vcex_shortcode_loop_atts( $atts ) { // Target portfolio grid if ( isset( $atts['base'] ) && 'vcex_portfolio_grid' == $atts['base'] && get_post_meta(…
function myprefix_related_portfolio_query( $args ) { // Change order from random to date $args['orderby'] = 'date'; // Return args return $args;…
function myprefix_remove_portfolio_category_description( $subheading ) { if ( is_tax( 'portfolio_category' ) || is_tax( 'portfolio_tag' ) ) { return false; } return…
function my_portfolio_related_entry_classes( $classes ) { if ( is_singular( 'portfolio' ) && in_array( 'loop-related', $classes ) ) { unset( $classes['col'] );…
function my_wpex_portfolio_wrap_classes( $classes ) { $classes[] = 'gap-40'; // Add a 40 pixel gab between items return $classes; } add_filter(…
// Alter the related portfolio thumbnail size function my_portfolio_entry_thumbnail_args( $args ) { if ( is_singular() ) { $args['size'] = 'wpex_custom';…
// There isn't a function built-in for this for many reasons, but it can be done with javascript like the…
// Disable The "Page Header" For Portfolio Items function my_disable_portfolio_page_header( $return ) { if ( is_singular( 'portfolio' ) ) {…
function my_portfolio_category_description_above_loop( $bool ) { if ( is_tax( 'portfolio_category' ) ) { return true; } return $bool; } add_filter( 'wpex_has_term_description_above_loop',…
// Change Related Portfolio Query Arguments add_filter( 'wpex_related_portfolio_args', function( $args ) { // Remove tax_query parameter so it doesn't try…
// Alter The Portfolio Related Posts Heading function my_portfolio_related_heading_args( $args ) { // Show different text for items in category…
The following snippet will show you how to add a custom block to your portfolio layout which you can enable…
// Add option to Portfolio items to disable media function my_new_portfolio_meta_options( $options ) { // Add new setting to portfolio…
/** * Add portfolio category to slug by altering register_post_type args. * You can also do this in the editor…
/** * Tweak the portfolio grid filter arguments. * * @link https://codex.wordpress.org/Function_Reference/get_terms */ add_filter( 'vcex_portfolio_grid_filter_args', function( $args ) { $args['order']…
function my_related_portfolio_excerpt_length( $length ) { if ( is_singular() ) { $length = '0'; } return $length; } add_filter( 'wpex_portfolio_entry_excerpt_length', 'my_related_portfolio_excerpt_length'…
.related-portfolio-posts .portfolio-entry-excerpt { display: none; }
body .related-portfolio-posts-heading { display: none; }