Use the page title in the plugin

You can simply use the get_the_title() function to get the current post’s title in your shortcode. If you want it to work only on pages, you can combine it with is_page(): function shortcode($atts) { extract( shortcode_atts( array( ‘name’ => get_the_title(), ) , $atts) ); // Rest of your code } add_shortcode(‘short_code’, ‘short_code’); You can use … Read more

Collapse content [closed]

Solved this. I created a plugin which loads this js: function showContent(element){ $(‘.huisjes’).slideUp(); if ( $(element).is( ‘:hidden’ ) ) { $(element).slideDown(‘slow’); } else { $( element).slideUp(); } } Then I created two shortcodes: function createDiv($atts, $content = null) { extract(shortcode_atts(array( ‘id’ => “”, ), $atts)); return ‘<div id=”‘. $id . ‘” class=”huisjes” style=”display:none;”/>’ . $content … Read more

Accidentally Broke Site (Please Help) [closed]

Via FTP, go into the /wp-content/plugins/ folder and delete the wp-date-remover/ folder. That will disable the plugin on the code level. If you need help with FTP, visit your web host control panel and navigate around, view their docs, andor talk to their support. (A very good reminder to always back up your website!)

Email Bounce Address

That seems to be the configured SMTP server by your hosting. It might be possible to configure this if you have CPANEL included. If that’s the case, take a look at this article. It explains how you can create your own SMTP address and use it for sending e-mails from your website. Alternatively, you can … Read more

Inserting HTML tag with ACF into shortcode

You have to use do_shortcode() to execute shortcodes in your string Full code should be like that <?php function my_shortcode( $atts ) { $atts = shortcode_atts( array( ‘post_id’ => ”, // Default value. ), $atts ); $output=”https://wordpress.stackexchange.com/questions/291524/[acf field=”image” post_id=”” . $atts[‘post_id’] . ‘”]’; $output = do_shortcode( $output ); $output=”<img src=”” . $output . ‘” />’; … Read more