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

How can I make custom page templates work on child theme?

Edit: I see you’ve answered your own question, but the answer you provided seems dubious to me, so I’m going to post this anyway. A child theme needs a few key elements to work: a style.css with header information (including Template: parent-theme-name), a functions.php file (where you can enqueue the parent theme’s stylesheet), and activation … Read more

Is_single not working properly in genesis

Please put your action add_action( ‘genesis_after_header’, ‘gp_page_header’); in if condition not whole code. if(is_single()){ add_action( ‘genesis_after_header’, ‘gp_page_header’); } Your updated code: if(is_single()) { add_action( ‘genesis_after_header’, ‘gp_page_header’); } function gp_page_header(){ $image = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), ‘single-post-thumbnail’ ); ?> <div class=”post-hero” style=”background-repeat: no-repeat;background-size:cover;background-image: -webkit-radial-gradient(left top, circle cover, rgba(100, 66, 255, 0.9) 15%, rgba(0, 108, 255, 0.9) … Read more