If pc-pvt-content
supports nested shortcodes, then I think you could wrap the_aiovg_player()
inside a custom shortcode. Something like this,
// In your theme functions.php
if ( ! shortcode_exists( 'the_aiovg_player' ) && function_exists( 'the_aiovg_player' ) ) {
function myprefix_the_aiovg_player_shortocode( $atts ) {
$id = ( ! empty( $atts['id'] ) && is_numeric( $atts['id'] ) ) ? intval( $atts['id'] ): 0;
if ( ! $id ) {
return '';
}
return the_aiovg_player( $id );
}
add_shortcode( 'the_aiovg_player', 'myprefix_the_aiovg_player_shortocode' );
}
Then you could use the custom shortcode like this,
[pc-pvt-content ..attributes.. ][the_aiovg_player id="123"][/pc-pvt-content]
Related Posts:
- Displaying Logged-In User Name in WordPress Menu
- How to set custom cookies before output
- How to use wp_insert_user on WordPress Multisite?
- On this day PHP code
- How do I add a php statement to a jQuery string
- Upload images and attachments from frontend form
- Woocommerce: How to override core functions in functions.php?
- Should I use wp_mail or PHP’s mail? [duplicate]
- Successful or Error Message after running mysql code in functions.php
- Link to file in plugin directory from wordpress template?
- Insert array data on plugin activation
- Auto crop images in WordPress
- Trying to make php run in a post
- Adding Default Settings to Theme My Login plugin
- How to add values to media “whitelist_options” in wp-admin/options.php template?
- WordPress Site Running Extremely Slow on Dedicated Server
- Remove wp_admin_bar fail on wordpress 4.0
- How to use an associative array in post__in with WP_Query?
- Extract 1st word of blogname/insert in middle of new string
- Can you run WordPress on a MarketLive/Java EE server?
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- filter default query to show just selected level of child pages in wordpress
- Set meta field to publish date + 2 weeks
- Redirect undesirable domain
- WordPress Gravatar filter is removing my custom attributes
- Refresh table data with Ajax
- Trying to install wordpress locally with mamp, but have unsupported php version
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- How to optimize the IF condition with many conditions and same output [closed]
- Show latest posts in a plain HTML website custom widget [closed]
- How to list posts from a plugin taxonomy?
- Delete taxonomy and delete all post related it
- Theme not calling Jquery properly
- Creating Database Table vs. Adding MetaData to Post & User
- How to put a form with php code into a variable or shortcode?
- WordPress redirect redirecting too many times or not at all
- how to prevent wordpress admin from logging in via woocommerce my-account page
- Can I add the post featured image to a specific RSS feed?
- Capture form data in one function and use it in another function (same file)
- how can i add class or span tag at sprintf?
- How to change logo by category
- Need to Modify a WordPress Shortcode with another wordpress shortcode
- Problem with custom loop and wp_list_pluck [closed]
- Check if tag contains posts
- How can I get plugin meta data without knowing the plugin folder?
- Permalinks: site.com/post-tite vs site.com/post-id/post-title for SEO and Speed
- Plugin: Front-end Editor – User role specific editable content?
- WordPress redirects page query parameter in URL
- Flatten Responses returned via WP REST API via WP_Error for obfuscation
- WordPress Custom Add To Cart Button with AJAX
- Custom reduce stock code affecting date_modified – How to bypass?
- Display acf taxonomy attachment
- Background image no longer fits to screen now that project is in php files
- WordPress loading all local images from specific directory?
- How to add a shortcode which runs a .php file for the current post
- How to Create Carousel Indicators in PHP Loop using wp_get_attachment_url function?
- Change button link to add nonce
- Outputting post content to jQuery .html() string
- WordPress wrong dates bug
- I have a background-image in css file but don’t show in site.how to fix this prblm. i sent screenshot. thx
- “Class Not Found” in HTML Form Target PHP File that contains the class
- WooCommerce REST API AJAX Auth – 401 response
- In a foreach loop, how can I add a meta value if it doesn’t exist?
- Looping through and combining calls to Woocommerce REST API
- Should I use wp_cache in my plugin to make it faster?
- clicking on the_tags() generated tags to show all tagged posts page
- How can I render more than multiple posts on template-parts with post formats
- When I create a new custom post type, it replaces the old post type
- WordPress Post undefined error with Post Date (New to Wordpres Dev)
- Move Jquery.js to Footer
- Updating the database after parsing CSV document
- From php web to wordpress conversion, href changes only in URL
- Attaching an upload to a user
- Change home_url in searchform.php to go to HTTPS instead of HTTP
- can’t grab PHP $_POST variable
- Ajax Load more CPT via shortcode
- Loop 1 user randomly
- Wp_mail doesnt work
- Use WP_Query Data In Cookie
- Sort by multiple options in custom field
- Is custom behaviour possible when asynchronously uploading?
- How can I show only if custom field has content [closed]
- Top menu disapears in Category Pages when filtering using ACF
- WPMU schedule doesn’t execute actions
- doubled content
- Adding if statement to content for homepage
- Tables not showing divs and loop/php items
- Keeping the previous get value and add another value when submitted
- Pagination not displaying
- how to import contacts from php to wordpress
- How to add active class dynamically
- Setting WooCommerce currency programmatically
- Masking external links with internal link for member-only
- I’m not able to get access $wpdb in my php file in wordpress
- Submit cf7 form to cfdb as pdf/BLOB [closed]
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- Facing Problem While Running WordPress Hook For Archive, Categories, Author, Date Pages Only
- generate excerpt from the part of big text dump that contains keyword
- How to sort search result by post_title, then by post_content
- Custom Admin Menu Report for Specific User ID