I made a test at this address for you to troubleshoot:
http://dev.intouch.green/ajouter-entreprise/?listing_type=gd_place
Works fine until we select a package – then the page reloads, with &package_id=3 in url.
The reloaded version misses some content im injecting through a custom function:
function huge_addlistingpage_test(){
$buffer = "";
//empreintes
$id = 890;
$post1 = get_post($id);
$content1 = apply_filters('the_content', $post1->post_content);
// $content1 = "test";
$buffer .= '<div class="addlisting_test">';
$buffer .= $content1;
$buffer .= '</div>';
wp_reset_postdata();
echo $buffer;
}
add_action('geodir_add_listing_test', 'huge_addlistingpage_test');
Please advise me how to properly inject my custom content into that page. Ive already copied the “geodir_action_add_listing_form_custom” from the plugin and replaced the calls in the add-listing.php template.
To avoid “hardcoding” any content in there, ive put the needed content in wordpress pages and im pulling it from there with a similar function than the one mentioned above. It works fine until we add the &package_id=3 parameter to the url.
So ive added lorem ipsum inside a blank page and turned my builder off on that page to make sur it doesnt interfere. It still cuts the lorem ipsum content.
I don’t know where to go from here, please advise how I can make it work, thanks.