Maxim Peshkov
Forum Replies Created
-
Hello,
First of all. The issue is not related to something dangerous or security vulnerability.
But, It’s not a common issue too. You’re the first user who is complaining about it.
Could you, please contact us via email above or using form here, so we could help you to solve the issue directly.Regards.
Hello,
First of all. The issue is not related to something dangerous or security vulnerability.
But, It’s not a common issue too. You’re the first user who is complaining about it.
Could you, please send us mail to hello@usabilitydynamics.com or using form here, so we could help you to solve the issue directly.Regards.
Barry,
Yes, you are right. Property stores only slug of property type.
There is no function which returns Label of property type for current or particular property.
I’m going to add the following function to next WP-Property release:if ( !function_exists( 'get_property_type' ) ) { /** * Return Label of Property Type for current or particular property * * @param mixed $post_id Property ID. * @return string */ function get_property_type( $post_id = false ) { global $post; if( !is_numeric( $post_id ) ) { if ( isset( $post->ID ) ) { $post_id = $post->ID; } else { return ''; } } $property_types = (array)ud_get_wp_property('property_types'); $type = (string)get_post_meta($post_id, 'property_type', true); if (array_key_exists( $type, $property_types )) { return $property_types[$type]; } else { return ''; } } }But you could use it now. Just copy and paste the function to your theme’s functions.php
So, to output label of property type you just need to do something like:
echo get_property_type( $property['ID'] );Regards.
Hello,
thank you for pointing us to the issue. Issues related to ‘Property/Properties’ white labels will be fixed in next release.
Regards.
Did you look through mail I sent you?
I attached theme with updated meta-box there.Regards.
I figured out what causes the issue:
WP-Property uses meta-box plugin which is rendering Property Details meta box.
But, The Cause theme is using meta-box plugin too, and that plugin is included to your theme directly.Plugin is stored in /the-cause/includes/plugins/meta-box and is being initialised in /the-cause/functions.php
See: http://screencast.com/t/3yfI7N76tGolThe problem is that the current meta-box plugin version in your theme is too old and it’s incompatible with WP-Property plugin.
I replaced old meta-box version in your theme with the latest one which I got here: https://github.com/rilwis/meta-box/releases/tag/4.5.7
And looks like it did the trick. However, I did not test it enough, and I’m not sure if it could break something in your theme.Since the issue is related to theme, I would suggest you to ask developers of the theme to upgrade meta-box plugin in ‘the Cause’ to the latest version to prevent the issues in future.
More details about meta-box plugin you can find here:
* https://wordpress.org/plugins/meta-box/
* https://github.com/rilwis/meta-boxRegards.
Barry,
You could add Property Attribute ‘Property Type’ on Developer tab on WP-Property Settings page, which should have slug ‘property_type’.
Property type is stored in postmeta table. It has ‘property_type’ meta key. So you, also, could use native WordPress for getting result. See get_post_meta() function.
Regards.
Paul,
You can set only one parent page for all properties. It’s a default Properties Overview page. You can set it on Main tab on WP-Property Settings page. See: http://screencast.com/t/B9ija7fzGK
There is not way to setup different parents for your properties.
Regards.
SDco,
I received your email. I will troubleshoot the issue and let you know as soon as possible.
Regards.
Hello,
Please, clarify, which menu labels do you have issues with?
Regards.
Please, use the form here to contact us, so I would be able to assist you directly with the current issue. Note, I will need your theme to replicate the bug and figure out what exactly causes it.
Regards.
Hrm, it’s weird and not a common issue.
Could you please, go through the instruction here to be sure that the issue is not related to some other plugin or activated theme.Regards.
Hello, SDco
Did the issue still persist for you? If it’s gone, please, mark the topic as resolved.
Thanks!
Paul,
please, let us know if suggested plugin works for you. In other case, we will take more close look to the issue.
Regards.
Hello,
new options ‘Sort By’ and ‘Sort Order’ will be available for ‘Child Properties’ Widget in WP-Property 2.1.0 release which we are going to launch next week.
Right now, you could use
[property_overview]shortcode to achieve your needs.Example:
[property_overview post_parent=post_id sort_by=menu_order sort_oder=DESC]post_parent=post_idoption is being used to list all the listings that are children of the current property.More details about
[property_overview]shortcode and dynamic attributes you can find here.I’m sorry, that this issue has been taking so much time.
Regards.