Theme does not allow shortcodes
Theme does not allow shortcodes
Theme does not allow shortcodes
You can wrap the entire return output in a do_shortcode(). That will render the shortcode as well as output the regular content. function bp_contenido_privado( $atts, $content = null ) { if ( is_user_logged_in() ) { return do_shortcode( $content ); } return ‘<p style=”font-weight:bold;padding-top:10px;”>Este contenido esta reservado para los usuarios registrados. Registrate <a href=”‘.wp_registration_url().'”>aquí</a> o <a … Read more
It’s typically best practice to not extract your shortcode atts. function dis_short_events($atts, $content = null){ ob_start(); $numero = shortcode_atts(array( ‘number’ => ‘-1’, ), $atts); $args =array( ‘post_type’=>’eventi’, ‘posts_per_page’ => $numero[‘number’] );
remove shortcode pagination for specific url referrer
the_permalink() echoes the output, and so does the_title() by default. So you should use get_permalink() and get_the_title(): $html .= ‘<h3><a href=”‘ . get_permalink() . ‘”>’ . get_the_title() . ‘</a></h3>’; Or use the_title() with the third parameter set to false to return and not echo the output: $html .= ‘<h3><a href=”‘ . get_permalink() . ‘”>’ . … Read more
Some solution for it given by a3 plugin JETPACK SITE ACCELERATOR (PHOTON) This is an option that you turn on as the Jetpack Accelerator (Photon CDN images) has its own lazy load feature that needs to be OFF first to be able use a3 Lazy Load as your lazy Load engine. Some users prefer to … Read more
using WPPB shortcodes without the plugin
The answer here is assumed the user equipped with the following knowledge PHP and know how to find reference from php manual online WP built-in shortcode_atts() – Combine user attributes with known attributes and fill in defaults when needed. I guess you haven’t written the shortcode in a proper form. Illegal string offset ‘title’ means … Read more
Sometimes the problem is less complicated than you expect. The wrong theme had been activated. Activating the theme ‘The7’ solved the issue. There are loads of sites out there with the same issue, hopefully this may help those who manage them.
This theme has a companion plugin called hunk-companion. I ssh’d to my server and did grep -iRl “almaira_shop_show_frontpage” inside the wp-content folder and it returned this: plugins/hunk-companion/almaira-shop/almaira-shop-admin/almaira_shop_shortcode.php I found that in plugins/hunk-companion/almaira-shop/almaira-shop-frontpage you have all the sections’ .php files. You can now copy the code you need into your own page template file to create … Read more