First Question: Solved by copying and modifying the “archive-product.php” template file.
if(is_product_tag(array('audio'))) :
include 'archive-product-audio.php'; // includes custom loop
else:
// default archive loop
endif;
Second Question: Solved by simply filtering the Recent Products shortcode via “function.php”.
add_filter('woocommerce_shortcode_products_query', 'removeAudioTags');
function removeAudioTags($args){
$args['tax_query'] = array(array(
'taxonomy' => 'product_tag',
'field' => 'slug',
'terms' => array('audio'),
'operator' => 'NOT IN'
));
return $args;
}
Related Posts:
- Error do_shortcode In WooCommerce Template
- Order Woocommerce Products by Latest Reviewed
- Include tags in the body of a post
- Pagination for a page created by the shortcode “Product”
- How to add site tags in alphabetical order to shortcode?
- the_excerpt displaying code inside style tag
- Display tags cloud from a specific category ID with a shortcode
- Term Description Echo or Return – display problems
- How to fix transparency in product sliders / featured products on home page?
- tinymce custom button
- Woocommerce products shortcode specific order
- Shortcode tags appear on mobile themes
- How to not show shortcode contents if cart is empty?
- woocommerce Product shortcode create [closed]
- Using get_option() in JavaScript
- Why are you using add_action for shortcode?
- How to get URL param to shortcode?
- Making a Shortcode [NEXT] and [PREVIOUS] to place into specific posts for post navigation
- How to display the site name in a WordPress page, or post
- Native “playlist” shortcode random playing… How?
- How to display the names of users from a specific group with a shortcode?
- shortcode for logo image
- Stop strip_shortcodes() stripping content inside shortcodes
- How do i link gallery thumbnails to different url’s using the wp native gallery?
- Gallery shortcode menu order fix no longer working on WordPress 4.0
- How to save a shortcode in a Gutenberg custom block?
- Is shortcode_unautop() broken?
- Some doubts about gallery shortcode in WordPress
- Can a shortcode function this way
- Dynamically create shortcodes using add_shortcode and a callback
- Passing attributes to shortcode dynamically
- Stop parsing shortcodes
- How can I make a shortcode from this code?
- Meta tags in shortcode
- Adding PHP/HTML code inside page from custom template
- How to change page title (from a plugin) in twentytwentyone theme
- WordPress Code Standards and Working $link Parameters In Shortcode
- shortcode get thumbnail size
- Shortcodes Keep Wrapping in
- Get URL Param Plugin and Inserting Result in Widget Code
- Problem with using custom shortcode with ACF WYSIWYG field
- Preserve shortcode content formatting
- Populate shortcodes with table data and get next row
- Running shortcode with variable that is modified
- Reloading a Mediaelement audio player
- Shortcode is not processed when added to option field using wp_editor
- How to apply an ID to Shortcode Embedded iframe
- Adding Shortcode Values to wp_head
- wp_list_pages shortcode jumps above previous content
- Retrieving post excerpt as a shortcode
- Using $this from child class inside shortcode function
- Insert PHP code via shortcode?
- echo something inside a shortcode
- What is the correct syntax to append a URL using a shortcode for an iframe?
- Shortcodes in RSS excerpts
- How to trace shortcode to its functionality
- shortcode issue in the_excerpt
- If else with shortcodes
- Using shortcodes to communicate my page design
- Unable to pull in custom product attribute in shortcode [closed]
- Assign a minimum result count for WooCommerce query shortcodes?
- Use Contact Form 7 with Ajax
- Is it possible to add a shortcode’s content to a table?
- How to get_post_meta in a shortcode in excerpt on archive pages
- WordPress upgrade adding additional quote marks to shortcode output
- How to build a shortcode for tabs
- Creating tabs shortcode
- SImple Example To Update User Info From Front End [duplicate]
- display custom portfolio tags
- get_posts not working on homepage?
- How to turn this HTML code into a shortcode? (adding song lyrics and giving an id to a div)
- How to work Woocommerce pagination inside shortcode?
- Wrap template code with shortcodes
- my form does not insert any data in the database
- How to cache a custom API call?
- Can Someone Help me to Correct my shortcode for displaying a category?
- Shortcode custom query not passing value
- Simulate shortcodes with javascript
- How to create custom variables in wordpress
- How to use Shortcode from one WordPress page in another WordPress page?
- Unknow shortcode read on display site
- woocommerce Shortcodes – Change display between mobile and Desktop
- Hide shortcodes content from the excerpt?
- WordPress Server Time not changing/displaying correctly
- Can we create a shorcode to move next page?
- launch a shortcode from a link
- how to add acf value to other plugins shortcode?
- Shortcodes: override a shortcode / change shortcode on the fly
- Class variables in shortcodes
- Separating Custom Template logic
- Remove width and height attributes from [gallery] output
- Help with Shortcode Functionality
- WP Customer Reviews call short code on another page [closed]
- Shortcode Site include in a other
- Why is my ajax live search not working when i use a shortcode to call it?
- How do write this type shortcode? [closed]
- WordPress functions.php shortcode is not working [closed]
- My first WordPress shortcode just returning []
- WordPress shortcode select option not working [closed]
- 3 shortcodes 2 won’t render [closed]