losing content when choosing Package on add listing page

This topic contains 9 replies, has 3 voices, and was last updated by  Myrianne 8 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #304328

    Myrianne
    Expired Member
    Post count: 48

    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.

    #304336

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #304342

    Myrianne
    Expired Member
    Post count: 48

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #304343

    Myrianne
    Expired Member
    Post count: 48
    This reply has been marked as private.
    #304345

    Myrianne
    Expired Member
    Post count: 48

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #304429

    Myrianne
    Expired Member
    Post count: 48
    This reply has been marked as private.
    #304740

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #304755

    Myrianne
    Expired Member
    Post count: 48

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #304848

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #305282

    Myrianne
    Expired Member
    Post count: 48

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount