Error in search results listing.

Discussion in 'ClassiCraft WordPress Theme' started by themotorcycledude, Aug 5, 2013.

Thread Status:
Not open for further replies.
  1. themotorcycledude

    themotorcycledude Member

    Joined:
    Jul 11, 2013
    Messages:
    83
    Likes Received:
    0
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    We are looking to this issue and will reply you as soon as possible.
     
  3. themotorcycledude

    themotorcycledude Member

    Joined:
    Jul 11, 2013
    Messages:
    83
    Likes Received:
    0
    It seems that the $id variable is empty in cc_get_image() when you call the_permalink($id);
     
  4. themotorcycledude

    themotorcycledude Member

    Joined:
    Jul 11, 2013
    Messages:
    83
    Likes Received:
    0
    Hi, can you please give me on update with this bug?
     
  5. kerristevens

    kerristevens Guest

    Joined:
    Feb 13, 2013
    Messages:
    18
    Likes Received:
    0
    Hello, any updates on this?
     
  6. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    Download file attached and replace it with your existing files.
    classicrafttheme\admin\cc_functions.php
    and
    classicrafttheme\template_search.php

    It will resolve this issue.
     

    Attached Files:

  7. themotorcycledude

    themotorcycledude Member

    Joined:
    Jul 11, 2013
    Messages:
    83
    Likes Received:
    0
    Thank you, however there are still more issues.

    1. The search results all show the same category "Exhaust", this is not correct.

    2. There is no pagination in search results. I've verified that there are more than 10 records in the database. I need all of my pages that list ads to have pagination. Please let me know how I can fix this.


    Screen shot 2013-08-14 at 9.55.35 AM.png

    Thanks.
     
  8. themotorcycledude

    themotorcycledude Member

    Joined:
    Jul 11, 2013
    Messages:
    83
    Likes Received:
    0
    I have fixed this. It seems that an incorrect variable was being used to get the category. If anyone else is having trouble, here is the fix:

    Change
    $taxonomies = get_the_term_list($post->ID, CUSTOM_CAT_TYPE, '', ',', '');
    to
    $taxonomies = get_the_term_list($cfield->ID, CUSTOM_CAT_TYPE, '', ',', '');
     
Thread Status:
Not open for further replies.

Share This Page