A child theme’s functions.php
file is loaded before the parent theme’s, so the behavior you’re seeing is correct.
Try adding your shortcode on a later action instead:
function wpa_add_child_shortcodes(){
add_shortcode( 'jo_customers_testimonials_slider', 'jo_customers_testimonials_slider_with_thumbnail' );
}
add_action( 'after_setup_theme', 'wpa_add_child_shortcodes' );
Related Posts:
- How do I change/modify the_post_thumbnail(); html output?
- Shortcode putting html such as
- Counting number of posts in a category and its sub categories and displaying result using shortcode
- Shortcode created to check language not works
- How to change featured content to a different tag in WordPress Twenty Fourteen?
- Add/echo div with Analytics-Code to function in functions.php
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- How can I default to all WordPress roles when parameter is not included in shortcode?
- WordPress menu deletes when trying to add a hook
- Wrap each shortcode in array to div
- How to make thumbnail image fit into a div where image dimentions are completely different?
- Recent post display using shortcode
- Nested shortCode functions in the functions.php file
- Making Quote Plugin more efficient
- Placing raw HTML inside a WordPress shortcode
- How to Display Image Meta underneath EVERY image in EVERY post
- Shortcode content output but not in correct place
- is_page “range” for if statement?
- PHP code inside shortcodes
- Shortcode content filter?
- Trigger popup in a php if/else statement
- How to output a PHP file values by shortcode?
- Showing content from one page on another
- Set the background to a default image if there isn’t a specified “featured image”
- How to display posts by current user in a drop down
- Get value from shortcode to do something
- Error when adding excerpt to the content through functions.php
- Custom shortcode outputs plain text instead of HTML at top of post
- Pass php dynamic variable to shortcode
- How to Reference/Echo Variable from Another PHP Function
- Remove echo from shortcode
- Redirect to another page using contact form 7? [closed]
- Shortcode with PHP issue “Undefined index”
- height should be set to auto to avoid pixelation in the post thumbnail function
- Shortcode from a function not working
- Display Data in Table from External Database in WP using Shortcodes
- Is it possible to return content, and then also continue to do other things?
- ::before on open/close function [closed]
- Is it possible to define variables in a wordpress shortcode, and then call the shortcode using a specific variable?
- Creating WordPress Shortcode with Variable
- Shortcode to find and replace URL
- Is it possible to display a DIV to not logged in users and then change it for users who are logged in?
- Help with WordPress function inside a shortcode
- calling a custom field value inside functions.php
- Shortcode to embed Edit Account form not working
- Shortcode for Listing Users from Meta Value?
- Cant display an image via PHP in wordpress
- Need to Modify a WordPress Shortcode with another wordpress shortcode
- Help Fallback (thumbnail)
- How to return a string that has a jQuery and Ajax inside in a shortcode?
- Else/If Statement to Display Photo Descriptions
- Fallback image URL if no featured image exists via a shortcode function
- Create special button on WP Tiny MCE Posts Editor for Shortcodes
- Get the alt text of the image in a array
- AJAX function not working [closed]
- Display logged in user name and lastname on page
- php dynamic content inside shortcode
- Display Visual Composer shortcode if a post belongs in specific categories
- Why is the current page loaded in the pop-up window and not the specified one?
- Add Featured Image to Existing Post
- How do I reopen the (Popup Maker) after entering the correct password for a password protected page?
- Block error message in foreach loop when looping through ACF field
- not outputting medium size image URL
- Replace background image with post thumbnail in shortcode
- How can I prevent a shortcode div from extending beyond its boundaries?
- PHP multiple forms, same page, isset($_POST[]) not working?
- Gravity Forms: How to add PHP function to confirmation conditional shortcode?
- wpdb->query returns different value to phpMyAdmin
- shortcodes, custom php and their errors
- Display a custom name when the user has no name settle in his account
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- How to put 2 php codes in functions.php without site crashing
- Before & After Content – After Content directly below Before Content when using require_once
- Display current user metadata on WordPress page
- Reload page with a different shortcode when a user selects from a dropdown
- How to link all featured images to custom url in single.php for only non-logged-in users?
- How Can I Display the Last Modified Date for User Profiles on WordPress?
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Offset with ajax load more posts duplicates
- Get posts by id using shortcode
- Shortcode’s output to use as other shortcode’s parameter
- Wrapping shortcode content in a span or link
- Update same content in multiple posts at once?
- Need help with PHP functions
- insert thumbnail image from php script
- Can’t put a hyperlink on Featured Post’s Image
- Add end mark at the end of every article
- Create dynamic content from one WP page to multiple other pages
- How to have Function of a plugin using global vars into a shortcode?
- Shortcoding with Divs
- Whats wrong with my code? Need To add String to shortcode? [closed]
- My title is showing after the shortcode
- A next page function with shortcode?
- Shortcode to include PHP file, pass various parameters to include?
- add if statement to the featured image
- Remove default Image Sizes
- Display terms on product page with shotrcode
- Add attribute to featured image with filter (wp_get_attachment_image_attributes)
- Generate and upload screenshot as featured image for user-submitted post
- How call WordPress shortcode inside function file