The $atts in your template part (templates/show-taxonomy.php) that you passed to shortcode_atts() is not defined, so you need to define it by passing it via the third parameter for get_template_part() like this:
get_template_part( 'templates/show-taxonomy', '', array( 'atts' => $atts ) );
Then in the template part, use $args['atts'] to access the shortcode parameters:
$atts = shortcode_atts( array(
'custom_taxonomy' => '',
), $args['atts'], 'atributes' ); // here, use $args['atts'] and not $atts
And actually, in the above shortcode_atts() call, the third parameter should be cat_widgets (i.e. the 1st parameter for add_shortcode()) and not atributes. 🙂
Related Posts:
- How to check if a shortcode is being executed in a widget or post
- Adding short codes from a page’s content on header and hiding the same from page’s content
- gutenberg widget outputting paragraph marks
- Why are Shortcodes Disabled in Widgets by Default?
- Error do_shortcode In WooCommerce Template
- List monthy archives for specific year with wp_get_archives
- Custom shortcode is not working in text widget
- add widget to page content (using shortcode)
- Print shortcode in defined area
- Adding a template part as part of a shortcode
- When are Shortcode Attributes Available in Template
- How to add shortcode to html widget
- Shortcode inside text widget do not call enqueue style
- Getting Shortcode Attributes befor content is displayed by the template
- my form does not insert any data in the database
- How to completely prevent WordPress from destroying/modifying my shortcode outputs?
- Shortcode or Template Page
- Using shortcodes that wrap around code
- Enclose article’s body with default shortcode
- do_shortcode autommatic content generation
- Add widget/shortcode to sidebar OUTSIDE of the theme
- Create a shortcode to display the “the_content ()” in my post [closed]
- Sidebar inside page conten
- wp:shortcode works in block theme template file but not PHP include file
- Pass boolean value in shortcode
- Get page IDs based on which template they are using?
- Implement If-ElseIf-Else-EndIf with short codes
- using html as shortcode attribute
- shortcode outputs first before the page content [duplicate]
- How to make shortcode to hide selection of text from post or page?
- how to get shortcodes to work inside the text of custom fields
- Shortcode attribute value with dash (hyphen)
- Shortcode content does not show in feed discription/excerpt
- Adding shortcode inside Visual Composer raw HTML [closed]
- Shortcode not working inside html input
- Add attribute to existing Shortcode
- How to link to a alternative page in CSS
- How to handle a shortcode function directly?
- How can I get the current user email instead of user ID?
- Shortcodes output in the wrong order
- How to add Shortcode (font awesome) in widget title?
- How to link to a page that has a shortcode?
- Should I cache default WordPress gallery shortcode output?
- How to load shortcode sooner
- Tinymce list of shortcodes button
- Add page title as a javacript variable to specific posts
- How to create a shortcode for custom page template
- Placing the_content inside shortcode not working
- How to add and submit input fields using a shortcode?
- Pass javascript array to shortcode
- Shortcode not working with WordPress updated
- WordPress Shortcode callback function with a plugin
- Saving post content to database with do_shortcode?
- Is it important to sanitize inputs in a shortcode that will be used in site that only I will post to?
- Single post content custom order
- Adding a class to shortcode API
- Parse Error: unexpected ‘}’ while creating Shortcode with Loop [closed]
- Pass data back to TinyMCE from Thickbox
- Forcing WP to embedd a video when using a shortcode
- Shortcode for output of wp_get_archives displays at top of post
- How can I execute shortcode outside the loop?
- Best practice for including plugin output in a template without using shortcode?
- Shortcode is not returned correctly
- Add Shortcode tag in Widget/Sidebar
- How do I make a shortcode?
- How to have shortcode autofilling the content if the attribution is specified?
- Do I need to escape number in this shortcode function?
- How can I list only custom shortcodes?
- Substite Category Slug in a Shortcode
- add new attributes into existing shortcodes
- Anchor text in Short code →
- Need 2 separate elements of add_shortcode for presentation
- Shortcode to return an image based on post taxonomy
- How to show an image via shortcode
- Load templates, pass arguments, and render output from functions.php
- How to Display Shortcode’s Content after Short Product Description?
- Jetpack gallery shortcode with slideshow
- Shortcode atts for WP Query args
- PHP not outputting the onclick in anchor tag
- Shortcode generated widget to appear on same line as heading text and button
- Create Button for Shortcode in Text Editor
- Send Mail with link to current_user
- do_shortcode for is_page(slug)
- Create shortcode to display specific post in relationship current date
- Add custom shortcodes to the Welcome Mail
- How to handle multiple nested shortcodes with different tags?
- Nested WordPress Shortcodes of Different Types
- WordPress Not rendering short code properly?
- Initialize add_action() for every copy of a specific shortcode
- Can I use widgets & shortcode if I need to return an array?
- WP_Editor Shortcode Issue
- Shortcode not working in custom post types
- Shortcodes that are created based on user input information
- Remove some tags from shortcodes output? Trying to fix autop
- do_shortcode & render custom field won’t work
- shortcodes inside shortcode to sum values
- is_mobile as shortcode
- How to attach sidebar to shortcode’s output?
- Is it possible to change a shortcode parameter based on a media query?
- How can I remove the wp_autop filter from a shortcode block in a block theme page template (twenty twenty-three)?