• Resolved michalko

    (@michalko)


    Hi

    I’ve got a problem with displaying the content (adverts) of a single category. I click on the name or the picture of a single category and it does not show any adverts (although I added some adverts to this category). It shows only the name of the category and the text: ?Nothing found. Apologies, but no results were found. Perhaps searching will help find a related post”.

    In the beginning it was showing nothing (blank page). So I did everything what is written here: https://wpadverts.com/documentation/child-themes-and-templates/. That means I created taxonomy-advert_category.php and added the code in functions.php.
    (I even tried to replace the ?while(have_posts())…” loop with the written code snippet but it changed nothing)

    I use Boss. Theme from buddyboss.com.

    ?[adverts_list] works fine – I can use the search and find the adverts. I’ve got a problem only with [adverts_categories]. It shows the names, pictures of categories and numbers – how many adverts are included in each category. But, as I written before, after clicking on a single category it shows ?Nothing found…”, although there should be some adverts.

    Do you have any idea how can I fix it?

    Thank you for your help.

Viewing 10 replies - 1 through 10 (of 10 total)
  • I have the same problem – shortcode ?[adverts_list], ?[adverts_categories] and displaying single advert works fine but when I’m trying to go into category (by clicking on category icon from [adverts_categories] or by clicking on category name on single advert page) to display only adverts from only one category I get 404 error…

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, please try using “Alt Term Links” snippet available here https://github.com/simpliko/wpadverts-snippets/blob/master/alt-term-links/alt-term-links.php, it will redirect all term links to page with [adverts_list] shortcode, this should work with all themes, the only downside is that it does not use SEO friendly URLs.

    Thread Starter michalko

    (@michalko)

    Hi Greg, thank you for your tip. But it’s not exactly what I was trying to do.
    Now, with “Alt Term Links” plugin, [adverts_categories] works just like the search-by-category and only with [adverts_list] on the same page.

    What’s more “Advert Categories” Widget still does not work properly (it shows 404 error).

    Is there any other way to solve this problem?

    I also use your BuddyPress Integration – maybe it’s important?

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    you can try disabling both Alt Term Links and BuddyPress Integration and see if this helps, but i am guessing this is rather unlikely.

    The blank page most likely shows because there is some fatal error, please try adding following line in your wp-config.php file

    
    define("WP_DEBUG", true);
    

    refresh the page, it should show an actual error message on site, then you can copy and paste this message here i should be then able to help.

    Hi Greg,

    I’ve tested your solution with alt-term-link and it work’s fine but just like you said – without SEO friendly URLs. Is there any way to do make those URL SEO friendly? For example with use of .htaccess or something else:

    now links are:

    example.com/adverts/?advert-category=adcategory

    and I think best way will be:

    example.com/adverts/adcategory

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, you would need to troubleshoot this issue like i explained in the last message, that would be the only way to have SEO friendly URLs.

    Thread Starter michalko

    (@michalko)

    Greg, I edited wp-config.php file and this information appeared everywhere on my website:
    ?Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method bphelp_remove_profile_links::remove_xprofile_links() should not be called statically in /home/bobby/ftp/bands/wp-includes/plugin.php on line 524”

    ?The line 524 looks like:
    call_user_func_array($the_[‘function’], array_slice($args, 0, (int) $the_[‘accepted_args’]));

    But I don’t think it’s relevant to my issue, because after clicking on a single category it shows the same information and nothing else.

    Thread Starter michalko

    (@michalko)

    Maybe it is relevant that when I want to change my ‘Core Options’ of your plugin I can only edit ‘Default visibility’ and ‘Currency Settings’. Here is print screen:
    Print screen of 'Core options'

    Plugin Author Greg Winiarski

    (@gwin)

    DO you have some Adblocker installed in your browser maybe? If so then please try disabling it and see if this helps (with both issues).

    Thread Starter michalko

    (@michalko)

    I disabled AdBlock, edited Core Options and now it works fine! So it was so simple… Thanks a lot! ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Problem with displaying the content of a single category – only Nothing found…’ is closed to new replies.