• Resolved peterbutler

    (@peterbutler)


    Is there a way to add more floor plans?

    I was able to add more fields in the backend – https://snipboard.io/je8Huw.jpg

    However, I can’t seem to make it show on the front end. Only the first 2 floor plan buttons show up.

    Any idea on this?

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Merv Barrett

    (@mervb1)

    Hi Peter,

    We are missing the filters in EPL to make this possible without editing the core plugin:
    Tracked Issue: https://github.com/easypropertylistings/Easy-Property-Listings/issues/962

    The solution until a release is pushed is as follows:

    The filters will be named.

    Filters to be named:
    epl_floorplan_keys
    epl_external_link_keys
    epl_mini_web_keys

    So for now you will need to edit the core plugin but we will implement the same change so when you update your new code will continue to work:

    edit
    lib/hooks/hook-floorplan.php

    LINE 30

    FROM

    $keys = array( ‘property_floorplan’, ‘property_floorplan_2’ );

    TO

    $keys = array( ‘property_floorplan’, ‘property_floorplan_2’ );
    $keys = apply_filters( ‘epl_floorplan_keys’, $keys );

    Then where your custom code is do the following

    // Add new floor plans
    function my_epl_floorplan_keys( $keys ) {
    
    	$keys = array( 
    		'property_floorplan', 
    		'property_floorplan_2', 
    		'another_field', 
    		'one_more', 
    		'all_the_way_to_10',
    	);
    	
    	return $keys;
           
    }
    add_filter( 'epl_floorplan_keys', 'my_epl_floorplan_keys'? );
    • This reply was modified 3 years, 11 months ago by Merv Barrett.
Viewing 1 replies (of 1 total)
  • The topic ‘Add More Floor Plans’ is closed to new replies.