post_content is empty

First, you need to pass the post $id in the function and not $title and $content: function new_post($id) Then your function may be echoing the content – check your source code in your browser via “View Page Source” if it appears blank. However, if you use echo $content then shortcodes, WordPress’s formatting and password protection … Read more

Retrieve Plugin Settings and insert into XML string

You don’t need the echo when you are concatenating strings. Just remove it. $xmlInputData=”<?xml version=”1.0″ encoding=”utf-8″ ?><data><settings><origin=””. $my_options[‘origin’] .'” username=”‘. $my_options[‘user’] . ‘” password=”‘. $my_options[‘password’] . ‘” /></settings><enquiries><lead productName=\”Appointment Booking”><customer><name>’. $_REQUEST[‘first-name’].’ ‘. $_REQUEST[‘last-name’].'</name><email>’. $_REQUEST[’email’].'</email><postcode>’. $_REQUEST[‘postal’].'</postcode><houseNumber></houseNumber><address></address><city></city><region></region><tel>’. $_REQUEST[‘phone-number’].'</tel><mobile></mobile><notes></notes></customer></lead></enquiries></data>’;

How do I change the text: Click on Event Name for description/registration

You didn’t provide a link to the plugin but I guess you mean this one. I wonder if you mean: line #20 in the file /public/evr_public-show_event_list.php: echo ‘<caption>’.__(‘Click on Event Name for description/registration’,’evr_language’).'</caption>’; line #338 in the file evr_content.php: <b>Click on Event Name for description/registration</b> You could use the gettext filter to change the former, … Read more

Default WordPress gallery or very lightweight alternative to it?

I got the gallery working like I wanted to, using the following plugin: https://wordpress.org/plugins/rocket-responsive-gallery/ Also, if I will have time, I will apply the information in this article: http://ottopress.com/2011/photo-gallery-primer/ Furthermore: with this answer I no longer need the default WordPress gallery styles because I can customize the gallery myself. https://stackoverflow.com/questions/19802157/change-wordpress-default-gallery-output

Hardcode a form in Contact Form 7 [closed]

I’ve looked for this some time ago. Best thing you can do is change the default contact form. Filter you can use: wpcf7_default_template Info can be found in contact-form-7/includes/functions.php file line 63 The filtered variable is: $template=”<p>” . __( ‘Your Name’, ‘contact-form-7’ ) . ‘ ‘ . __( ‘(required)’, ‘contact-form-7’ ) . ‘<br />’ . … Read more

Regarding plugin security

Plugins on wordpress.org has always been a debateble question for me. According to my opinion all plugins submitted to wordpress.org should be tested thoroughly and should be bug free. However, I come across many highly used plugins that are not up to scratch. More that 50 percent of plugins I’ve tested have some kind of … Read more