• Resolved Jon

    (@freshyjon)


    We are using your plugin with Divi, and also Conditional Menus plugin.

    Our goal was to be able to change the header and/or main menu, based on what the listing’s Property Type. For example, we have a Property Type of “North” and a Property Type of “South”. But your plugin seems to utilize regular WordPress pages somehow, and not its own CPT. Nor does it seem to store the “Property Type” as a taxonomy to the page when loaded.

    Therefore, we don’t see a way to control any conditional logic (whether from the Conditional Menus plugin, or the new Divi Theme Builder) based on what Property Type page is being viewed.

    On the listing pages, we want to be able to change the header/menu via conditional logic, depending on the Property Type of that listing page.

    Is there a way to have the property listings be on their own CPT with the proper taxonomy setup?

Viewing 1 replies (of 1 total)
  • Plugin Author Realtyna

    (@realtyna)

    Hi Jon,

    Thanks for your feedback.
    WPL does not use CPT or WP taxonomies due to some reasons.

    To display property details page we use Page template of your theme and you can customize that file of your theme to include custom headers / footers based on property listing type. Also you can create custom template and assign it to your WPL main page (Normally /properties/ page).

    You can use following code for your customization:

    if(class_exists('wpl_request') and wpl_request::getVar('wplview', NULL) == 'property_show')
    {
    	$property_id = wpl_request::getVar('pid', 0);
    	if($property_id)
    	{
    		// Get property_type column from wpl_properties table and do whatever needed
    	}
    }

    Please let us know if there is anything else we can help you with.

Viewing 1 replies (of 1 total)
  • The topic ‘Conditional logic with Divi Theme Builder’ is closed to new replies.