• Anna
    May 7, 2014 at 12:16 pm #35353

    1. Disable the sorting of Featured properties having precedence so its sorted normally (by date I assume and to include all properties irrespective if its tagged as featured or not),

    in shorcodes.php

    around line 807


    $args = array(
    'post_type' => $type,
    'post_status' => 'publish',
    'paged' => 0,
    'posts_per_page' => $post_number_total,
    'meta_key' => 'prop_featured',
    'orderby' => 'meta_value',
    'order' => 'DESC',
    'tax_query' => array(
    array(
    'taxonomy' => 'property_category',
    'field' => 'term_id',
    'terms' => $category_of_tax
    )
    )

    );

    edit into


    $args = array(
    'post_type' => $type,
    'post_status' => 'publish',
    'paged' => 0,
    'posts_per_page' => $post_number_total,
    'tax_query' => array(
    array(
    'taxonomy' => 'property_category',
    'field' => 'term_id',
    'terms' => $category_of_tax
    )
    )

    );

    around line 825


    $args = array(
    'post_type' => $type,
    'post_status' => 'publish',
    'paged' => 0,
    'posts_per_page' => $post_number_total,
    'meta_key' => 'prop_featured',
    'orderby' => 'meta_value',
    'order' => 'DESC',

    );

    edit into


    $args = array(
    'post_type' => $type,
    'post_status' => 'publish',
    'paged' => 0,
    'posts_per_page' => $post_number_total,

    );

    Item 2: Get a listing of featured properties I would create a category specifically for featured properties and have the listing to show just the featured category.

    – use recent post shortcode and use the id of the new category

    If you need more help, please let me know.

    Thank you,
    Anna

    shan_2000_uk
    October 3, 2014 at 3:27 pm #99569

    Hello Anna – Im trying to get this to work on this website: http://www.realhotproperty.com

    But I don’t understand what I need to do and more importantly, I don’t want to break something and then not know how to fix it…

    If there any chance you could paste the whole short codes.php file here so I can just replace the one I have?

    Any help greatly appreciated Anna 🙂

    Thanks,

    Shaun.

You must be logged in to reply to this topic.

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.