Rob Homan
Forum Replies Created
-
Hi!
I ended up creating a shortcode called [objects]. WPP stores all properties as a post with post type ‘property’. The shortcode code outputs HTML, built with data coming from a custom query:
$query = new WP_Query(array( 'post_type' => 'property', 'post_status' => 'publish', 'posts_per_page' => 20 ));
This solution satisfies our need to create a completely custom template, custom CSS and custom JavaScript, without including any of WPP’s default files.
Thanks! I’ll look into that.
So you do offer documentation on how to customize the property overview by using a custom PHP-file (which can be chosen as the property overview page under the plug-ins settings), but you do not offer any support if the documentation provided does not work out? I find that curious. Could you please reconsider?
Regards
Bump ??
Thanks.
I am aware of the shortcodes provided by WP-Property, but we would like to use our custom code for the loop.
The following code is now used on page-objects.php, which has been set as the property overview page under the plug-in settings:
<?php if(have_properties()): ?> <div class="row"> <div class="col-xs-12"> <?php foreach(returned_properties('load_gallery=false') as $property): ?> test <?php endforeach; ?> </div> </div> <?php endif; ?>