You are probably confused by the output of array_values() which will always get you only array values without keys while $atts variable is actually an associative array.
To extract your attribute use $arr = $atts['tablepageid'];
Cheers
Related Posts:
- Adding PHP/HTML code inside page from custom template
- How to create a shortcode for custom page template
- shortcode javascript not working on custom template file inside theme folder
- WordPress shortcode display as plain text
- Looking for a way to include/embed text from a file on a page so that the short codes are processed
- Problem with multiple shortcode in page template
- Using shortcodes to communicate my page design
- How and when to include shortcode source files
- Enclosing Shortcode not working in a Template
- Shortcode or Template Page
- Separating Custom Template logic
- Can not get shortcode content in function
- wp:shortcode works in block theme template file but not PHP include file
- Single post content custom order
- Parse Error: unexpected ‘}’ while creating Shortcode with Loop [closed]
- Code is providing a row of data but not formatting it as table
- 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?
- Gutenberg Shortcode Fail
- How to add “get_theme_mod” inside a shortcode?
- How to create shortcode to display perticular word from page title
- Shortcode is not returned correctly
- Echo HTML in custom shortcode
- passing markup thought a shortcode attribute
- Echoing Shortcode content inside the loop
- How to have shortcode autofilling the content if the attribution is specified?
- Shortcode argument multiple values
- How can I collect and output all attributes of all executed ShortCodes?
- Do I need to escape number in this shortcode function?
- Short code inside the page not working in WordPress
- How can I list only custom shortcodes?
- Substite Category Slug in a Shortcode
- Add inline style to pages where shortcode was used
- add new attributes into existing shortcodes
- Anchor text in Short code →
- Need 2 separate elements of add_shortcode for presentation
- Why ‘do_shortcode’ doesn’t work in a REST request?
- Basic custom Shortcode not working
- Theme Icons not visible on http://domain.com, works on http://ipaddress
- require_once not working
- Shortcode to return an image based on post taxonomy
- Add variable in between do_shortcode
- How to pass an array as attribute of shortcode to work properly shortcode parser?
- How to show an image via shortcode
- How to put custom admin setting field into a shortcode
- shortcode – I need to throw a message or load a different page
- How to add site tags in alphabetical order to shortcode?
- WordPress post shortcode pagination not working
- Using shortcodes in the Site Title
- Use atributes of shortcode in get template part
- Shortcode do not return a value
- Problem parsing long parameter in shortcode
- How to use multiple (or array) values in $content of shortcode?
- How to display content if user meta data isn’t empty with shortcode
- How to display total user count by specific role in WordPress as statistics?
- User name in referral URLs
- Is there any way to set the Featured image in wordpress post editor, using a Getty images embed code
- How to style inline code in block editor?
- Is it possible to capture the content outside/between shortcodes?
- Add Style to text in a PHP block
- How I can add placeholder in shortcode
- I’m using rtMedia and Youzer. Can Shortcodes be used to display a video gallery?
- Help with a function to create a shortcode
- How to use strip_shortcodes() from a spawned process?
- How to add new images to existing shortcode configuration?
- Content included from pagination
- Term Description Echo or Return – display problems
- Same Shortcode not executing second time
- Check if Page=current user page via shortcode
- Shortcode with multiple paramaters
- tinymce custom button
- Running Filter or Shortcode Before Query Prevents Excerpt from Showing
- How to handle multiple nested shortcodes with different tags?
- Using shortcode to stop post content from displaying
- Shortcode Attribute contains clone of all shortcode attributes
- How to echo an array returned by a function
- Custom Login in Shortcode got error
- Nested WordPress Shortcodes of Different Types
- Creating custom shortcode
- What is short code for following?
- Created a shortcode, using it twice (but differently) on a page but its just outputting the same one twice
- Access Shortcode in ajax code?
- Automate post creation in wordpress
- WordPress Not rendering short code properly?
- WP_Editor Shortcode Issue
- Shortcode not working in custom post types
- Shortcode or placeholder for theme options page?
- How to print [embed] code in wordpress [duplicate]
- is_mobile as shortcode
- Is it possible to change a shortcode parameter based on a media query?
- Shortcode append to the the_content()
- IFrame Shortcode plugin – issue
- How to call shortcode on button click
- How can you alter the name of attributes in a shortcode?
- Wrapping a function in html tag and return?
- Working with Shortcode, AJAX, Elementor
- How to exclude some cats from wp_list_categories using shortcut
- How can I create a shortcode that shows a list of categories on the single product page?
- Array to String Conversion warning in shortcode