-
AuthorPosts
-
December 2, 2015 at 8:32 am #545774
Hi,
I have created a new avia-shortcode — (FULL Width Slider, Driven from Image Tags)
The Meida Library has the post_tag taxonomy enabled on it, allowing the images to be selected and made into random galleries.Leaving the file in
/config-templatebuilder/avia-shortcodes/The new plugin short code works perfectly, and I have the TinyMce editor working correctly & the Frontend.
Looking through the code, it appears that if I try and move the class to another location (wp-content/plugins/myplugin) it fails on the DRAG & DROP in the editor, although it appears to be adding correctly otherwise. I’ve popped the code in the Private section
————————-
Any Hints on which hook i’ve missed to get this to work fully from a plugin location ?-
This topic was modified 10 years, 2 months ago by
akfdev. Reason: Trying to add code blocks properly
December 2, 2015 at 10:15 am #545798Correction to a AVIA file — The $paths variable is not being modified, it’s being replaced. The order of the plugins being loaded is essential on the array_merge($newpaths,$paths); to make it work. Possible to roll this out into Enfold ?
// config-templatebuilder/config.php modificaiton
function add_shortcode_folder($paths) { $newpaths = array(dirname(__FILE__) ."/avia-shortcodes/"); return array_merge($newpaths,$paths); } add_filter('avia_load_shortcodes','add_shortcode_folder');-
This reply was modified 10 years, 2 months ago by
akfdev.
December 4, 2015 at 1:55 pm #546989Hey!
in this forum we can offer basic support only, as written in our support policy when registering. It would require a huge amount of time and work to achieve what you need and that is why you would need to hire a freelance developer for this job.
Regards,
Andy -
This topic was modified 10 years, 2 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
