The code in this download file enables you to modify the entire default shortcode functionality included in the Genesis Simple FAQ plugin.
By default, the shortcode attributes generated by the plugin enables you to customize the display of F.A.Q’s using 3 parameters for i.d, category and limit only. The code in this tutorial enables you to add/modify any WP_Query parameters. Alternatively, you can this code to add custom shortcode attributes for use with specific shortcodes.
Note : If you want to modify the widget generated by the F.A.Q plugin, use this code instead. If you want a coded solution which doesn’t require a plugin, try these code snippets.
This method enables you to modify the PHP code from a plugin via your child theme without using filter functions and can be used to modify PHP functionality from any plugin in any child theme.
There’s 2 simple steps :
Step 1 : From the download folder, upload the file to your child themes root directory.
Step 2 : Add the following line of PHP code to the end of your child themes functions file.
require_once( get_stylesheet_directory() . '/custom-shortcode.php' );
Register or login to access the download folder for members :
Leave a Reply
You must be logged in to post a comment.