You can use set_query_var
('playlist_id', $tp_atts['id']);
.
When you later call locate_template
with $load = true
, it will call load_template
, which extract
s the query variables making them global, and accessible to the template file (in this case, as $playlist_id
).
Related Posts:
- How to customize search result page title?
- How to fix a theme with page.php Default Template that accidentally deleted?
- Display random categories on the front page (Finding and Editing Theme Functions)
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- When is it appropriate to put functions on page template vs. functions.php?
- Removing Unnecessary Text from Admin Menu without CSS
- Set default options for inserting media
- Default or Preset Content for Custom Post Types
- Remove tag on my RSS Feed
- Display WordPress Search
- How to add a rel attribute to images that contains their categories?
- Preferred Use of home_url()?
- Can I use require() function in a template file?
- Custom function for user register in wp?
- Dequeue script in template isn’t working
- Help to resolve Syntax error, unexpected ‘endwhile’ (T_ENDWHILE) [closed]
- Adjust which tempalte a page uses with a function?
- How to change menu icon which is overriden (i.e. by WooCommerce) [closed]
- Delete pages and Create default pages for all new network sites
- Actions according to image type and size
- Make “sidebar template” the default template for new pages
- Retrieve post modified date for specific post by post ID
- Post thumbnail relative link and HTML modify
- Refactor create_function
- How would go about if I just want a temporary function?
- Remove the deleted users avatar from list
- How to call custom function from functions.php in site-wide template files?
- Attach parent category template to all subcategories
- Add class or ID to any WordPress function
- How to remove howdy dropdown menu content
- str_replace function in theme
- Display Password Protected external RSS in wordpress template
- How to extract the variables out from “add_shortcode” function?
- How to enable template page only for a post id page
- Selective Product Category for Carousel
- How to change login labels
- Modify a function without editing template
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- Right way to update widget on dynamic new input field
- How to customly read JWPlayer’s “Playlist” items by using its “playlistid”?
- Twentyten Child Theme: header images display messed up in admin panel
- IF Statement on Button to make it complete and “uncomplete” based on user action / click
- Gravity Forms Button Text
- Find resources dynamically loading and change or add to the url
- When sale price is 0.00 show only regular price
- Word Press – Dynamic Content [closed]
- Insert image in WordPress with HTML5 tag and caption function
- how can I just add to parent theme function(s) instead of redeclaring whole the function
- Full page template function
- Move Custom Fields on General Settings Page to New Location
- Page attributes missing
- Skeleton Child Theme Add Icon Bar to Header Flex Grid
- wordpress use single ajax in place of multiple ajax requests in a smarter way
- Add Element as a Filter to the_content
- Need print logo without any ID & class
- Define PHP variable from a seperate API if statement
- Custom Behavior when Adding New Custom Post Type in Dashboard
- Custom HTML markup
- Use a shortcode to display custom meta box contents
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- Create custom function for hero image
- How to append classname to body tag if guest user
- Where do I go to edit this area? [closed]
- Replace plugin function with a custom function?
- Add a field into a shortcode of an extension
- Specify multiple categories for custom post template – FATAL ERROR
- Function to replace comment’s accented characters before posting
- New checkbox in custom widget isn’t saving data
- Linking Javascript in functions.php file
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- Prevent creating multiple image resizes in twentytwelve template
- Render page with specific id from functions.php
- the_date() and the_time() functions display actual date an time instead of published date and time
- How to replace ACTION url from original wordpress login form?
- Modifying a WordPress Plugin
- Hide author info in single posts by certain users
- External api call and make global variable for any page visitor enters , page-home, page, single etc
- CSS style and app.js not loading
- Parent category as WOOCommerce Categories widget title
- I want to customize the_posts_navigation function by replacing prev and next with images
- How would I correctly implement a new if statement in a child functions file?
- More than one search results page template for two searches on site
- True email confirmation for registration (keeping unvalidated users from user table)
- How To Show Shortcodes In WordPress Custom Fields?
- How to make an If Else on Excerpt Filter
- Newest comments first not working
- Retrieve a custom form field modified by a filter
- Allow the access over wp-login.php
- Get Value of Custom Field
- restrict access to specific urls on a specific period of time
- How to request login for user but not for bots
- Post variables not displaying correctly in custom function
- How do I add functionality to images?
- Which template file to edit to edit homepage in Mystile [closed]
- Creating mixture of shortcodes to use in the visual/text editor
- My website is generating weired url parameters of paginated pages
- How to crop image in WordPress with aspect ratio for any size of image
- How to store page-{id}.php templates in custom folder
- Customizer cuistom CSS Priority ordre Issue
- Copy and Modified WooCommerce function is_coupon_valid [closed]