.html form added to a page

If you want to have a form on a page, there are plugins that allow that; a popular one is “Contact Form 7”. But if you want a specific ‘action’ page to fire when the submit button is used, then it might be best to create a page template. The template could include the form … Read more

I am trying to add checkbox for anonymous post on form post

First of all don’t ever edit core files. Your changes will be lost on update. WordPress has a great way to expand as needed called Plugin. As you don’t have enough knowledge about how WordPress works I suggest to use this ready made solution to avoid any risk. Here is the link

Reading POST over admin-ajax.php

OK, so there are many problems with your code… But I’m pretty sure I know, where the major one lies… But first things first… You add your AJAX callbacks with this code: add_action( ‘wp_ajax_wilcity_handle_review_listing’, ‘address_save_postdata’ ); add_action( ‘wp_ajax_wilcity_handle_review_listing’, ‘address_save_postdata’ ); It doesn’t make sense to add the same function twice. It can be a mistake, … Read more

display a message if get form is empty

If anyone faces the same problem, its easy to display a message with have_posts() <?php if ( have_posts() ) { echo “Events gefunden”; } else { echo “Keine Events gefunden”; } ?>