Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7520
    aymericdl2
    Member

    I read the code and I think there is a problem in the function bepro_get_listings

    line 663 of bepro_listings_functions.php in the latest version:

    $raw_results = $wpdb->get_results(“SELECT geo.*, posts.post_title, posts.post_content, posts.post_status FROM “.$wpdb->prefix.BEPRO_LISTINGS_TABLE_NAME.” as geo
    LEFT JOIN “.$wpdb->prefix.”posts as posts on posts.ID = geo.post_id $cat_finder $join_filter WHERE (posts.post_status = ‘publish’ OR posts.post_status = ‘private’) $returncaluse GROUP BY geo.post_id $limit_clause”);

    we never link the listing to a taxonomy. even in the data base, I don’t see any link between term_taxonomy and bepro_listings (as we can see in the previous version of Bepro listings)

    Does anybody know what can be the explanation of this issue?!!!

    thanks

    Aymeric

    #7521
    aymericdl2
    Member

    Hi,

    forget about the 2nd post I missunderstood the function.

    I found what’s wrong:
    when I create a new listing category, the id I give is not the id in the database (this is normal maybe)
    but when I use l_type option in display_listing I have to write the id in the database and not the one I entered when I created the category.

    the only question remaining : is it normal?!

    so sorry for all this consecutives messages.
    And thanks for the Bepro team for your amazing job

    Aymeric

    #7523

    Hi,

    Thanks for reaching out and sharing this issue.

    The bl_all_in_one shortcode was designed to help new users. In this case, it seems to be confusing you more than helping. The l_type option in this shortcode relates the layouts and not categories. We will use this feedback to refine the options for this shortcode in the future

    We have not received any reports of the l_type option not working for the display_listings shortcode. The issue you are experiencing is not normal. The display_listings shortcode accepts the category ID that wordpress uses and it can be retrieved from the wordpress “BePro Listings->Category” admin page. Can you confirm that you are in fact using BePro Listings categories and not wordpress post categories?

    ___
    BePro Software Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.