ckgrafico
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Plugins
In reply to: [LookBook for WooCommerce - Shoppable with Product Tags] show all lookbooksJust comment this line 565 and nexts or create a custom shortcode:
public function register_shortcode_instagram( $atts ) { $this->enqueue_scripts(); $atts = shortcode_atts( array( 'style' => $this->settings->get_ins_display() ? 'carousel' : 'gallery', 'row' => $this->settings->get_ins_items_per_row(), 'limit' => $this->settings->get_ins_display_limit(), ), $atts ); $args = array( 'post_type' => 'woocommerce-lookbook', 'post_status' => array( 'publish' ), 'posts_per_page' => $atts['limit'], 'order' => 'DESC', 'orderby' => 'date' // 'meta_query' => array( // array( // 'key' => 'wlb_params', // 'value' => 's:9:"instagram";s:1', // 'compare' => 'LIKE', // ), // ) );has to be easy to you to create an option or another shortcode like the instagram one but for all the lookbooks 😀
- This reply was modified 5 years, 6 months ago by ckgrafico.
Was not easy but I think I did it 🙂 if someone elsee needs the code
function forminator_callback($html) { // WordPress does not like to use shortcodes in html attributes preg_match_all('|(="\[.*\])(.*)(\[\/.*\])|U', $html, $matches); $codes = $matches[0]; if (!$codes) { return do_shortcode($html); } foreach ($codes as $code) { $html = str_replace($code, do_shortcode($code), $html); } return do_shortcode($html); } add_filter( 'forminator_render_fields_markup', 'forminator_callback' );Is this only working for html field?
I’m not able to use a shortcode in a label only in html fieldForum: Plugins
In reply to: [WP-Polls] Create poll with shortcodeuseless, ok thanks
Forum: Plugins
In reply to: [Combine JS] [Suggestion]mmm I’ve problems with min files (internal obviously, I’m going to doublecheck this)
Forum: Plugins
In reply to: [Combine JS] explode "\n" doesn't workperfect 😉 good job
congrats for your two magic plugins!
Viewing 6 replies - 1 through 6 (of 6 total)