madmottscott
Forum Replies Created
-
Forum: Plugins
In reply to: [Brilliant Web-to-Lead for Salesforce] Forms Deletingis there any way (other than manual) to backup the forms incase this happens again?
Forum: Plugins
In reply to: [Master Accordion ( Former WP Awesome FAQ Plugin )] Code CategoriesHi Cat,
I don’t see anything that jumps out, except for quotes on your short code. Try changing that to[faq theslug='victory-box']
and see if that helps.Thanks!
-ScottForum: Plugins
In reply to: [Master Accordion ( Former WP Awesome FAQ Plugin )] Code CategoriesHi Catherine,
The modification would get overwritten if you updated the plugin. Not if you updated wordpress.Plugins don’t tend to auto-update, its usually your choice, so you would be safe.
All that said, i’m not sure how active development is on this plugin, and if it will be updated in the future.
Thanks!
-ScottForum: Plugins
In reply to: [Master Accordion ( Former WP Awesome FAQ Plugin )] Code CategoriesHi guys,
I wanted to do the same thing, its a great plugin.Here is how you can modify the shortcode function to have this capability:
in /wp-content/plugins/wp-awesome-faq/index.php around line 87After:
function h2cweb_accordion_shortcode($atts) { // Registering the scripts and style
ADD:
extract( shortcode_atts( array('theslug' => 'general-questions'), $atts, 'faq' ) );
Edit the following line that reads:
$args = array( 'posts_per_page' => 50, 'post_type' => 'faq', 'faq_cat'=>"$theslug", 'order'=>'DESC');
to read:
$args = array( 'posts_per_page' => 50, 'post_type' => 'faq', 'faq_cat'=>"$theslug", 'order'=>'DESC');
Once you have edited those two lines, you can use the shortcode like this:
[faq theslug=’YOURSLUG’]
Where ‘YOURSLUG’ is the category slug.Also, you can set the default slug in the line that you added first. My default slug in the example above is ‘general-questions’. This is the slug that will be pulled if one isn’t specified in the short code.
Hope that helps!!
-ScottThanks, I cobbled together something to do this, but it’s not pretty from a code point of view ??