New answers tagged

0

Yes, you can install WordPress in a sub-directory and then use something like Gravity Forms or Contact Form 7. I'd also suggest that you sign up for a Recaptcha API Key and enable that if the forms are public facing to help combat spam.


0

You can quickly create a quick shortcode for doing that. add_shortcode( 'test_shortcode', 'my_test_callback' ); Then, in the callback function you do this: function my_test_callback() { //start adding the echoed content to the output buffer ob_start(); //run your code here - in this case your testTest() function testTest(); //return ...


0

You could use add_shortcode if you want to use it within the editor. function footag_func() { return "Test"; } add_shortcode( 'footag', 'footag_func' ); And then use [footag] in your editor. Or Use code like this in functions.php and add a conditional tag add_action( 'loop_start', 'your_function' ); function your_function() { if ( is_singular('post')...


1

I picked the following code from an answer here, https://stackoverflow.com/questions/2544870/remove-main-editor-from-wordpress-edit-page-screen/42093956. I tweaked the code to remove the classic editor on pages using default page template. And added the comments. function remove_editor_init() { $post_id = 0; if ( isset( $_GET['post'] ) ) { $post_id =...


Top 50 recent answers are included