Contact Form 7 Shortcode not recognized inside another shortcode

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

Shortcode atts for WP Query args

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’] );

create custom shortcode wp and put php code in

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

How can I edit the final HTML structure of the whole web page

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