Support » Plugin: WPAdverts - Classifieds Plugin » Categories page not found

  • Resolved freizeitmonster

    (@freizeitmonster)


    Hi,

    i am using your wonderfol plugin. I have set a custom home page with elementor with a category widget on the left bar. But when I click on on category, the website displays “This page could not be found”. Link is: https://website.com/advert-category/some-category/

    I read the child theme template page. Where do i have to put the new “taxonomy-advert_category.php” in it? Where is the default taxonomy.php file?

    Best
    Sven

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    the file you need to put in your current theme folder, that is, if you are using for example the Elementor hello-elementor theme then you would put that file in wp-content/themes/hello-elementor/ folder.

    That being said the error you are seeing most likely will not be fixed by creating the taxonomy-advert_category.php file, as this looks like a problem with WP router.

    I would recommend going to the wp-admin / Settings / Permalinks panel and clicking the “Save Changes” button, this will reset the WP router and should fix all problems with the WP router.

    If this will not help you can email me a link to the page where you are having this issue i will take a look at it.

    Thread Starter freizeitmonster

    (@freizeitmonster)

    @gwin The issue is still there.
    Can you please check https://myfreizeit.de/ or the catgerie link https://myfreizeit.de/advert-category/alles-fuer-den-braeutigam/

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    hmm, that is quite strange, the page you linked to shows a “not found” error message but it does not return a 404 error code, so i am not really sure what does this means.

    I am not really familiar with Elementor but i see you are using the Elementor Pro, if i am not mistaken with the Pro version you can build a template for the custom taxonomy (in this case advert-category), you can try doing that and in the template content enter this shortcode

    
    [adverts_list category="current"]
    

    I am testing with the same theme but with lite Elementor version and the category pages seem to be working fine for me, so one other option would be to try disabling other plugins one by one and seeing when and if the problem goes away.

    If nothing else you can try to reach out to Elementor support and ask them: Why the custom taxonomy (advert-category) is showing a 404 error message?

    Thread Starter freizeitmonster

    (@freizeitmonster)

    Hi, i have created a fresh installation. I`ve created a new home page with the shortcode [adverts_categories show=”all” columns=”1″ sub_count=”3″].

    I saved the permalinks: no result.
    I deactivated the elementor Pro plugin: no result.
    No other plugins installed (beside the wpadverts and elementor plugins).

    But the issue is still there.
    How is your setup for the category-pages on your demo page??

    Thread Starter freizeitmonster

    (@freizeitmonster)

    @gwin i found a previous post here:
    https://wordpress.org/support/topic/hello-elementor-theme-missing-categories-and-location-pag/

    and it works perfect. Unfortunatally i cant edit the page with elementor. Can you give me a hint how to do that (the solution with a elementor template does not work)?

    Also, the title of an ad does not lead to the ad but reloads the page instead.
    Please try it yourself:
    http://www.myfreizeit.de > click on category name (left sidebar) > click on ads title.

    Plugin Author Greg Winiarski

    (@gwin)

    The category pages seem to be showing a 404 error to me but the Ad details pages work fine?

    The demo site is not using any special settings this is basically Twentytwelve theme with WPAdverts installed and nothing else.

    If you cannot get the permalinks to work you can use Alt Term Links snippet https://github.com/simpliko/wpadverts-snippets/blob/master/alt-term-links/alt-term-links.php it will not allow you to have pretty permalinks for category pages but the categories should work fine regardless of your setup.

    How to install the snippet you can read here https://github.com/simpliko/wpadverts-snippets/blob/master/alt-term-links/alt-term-links.php

    Also if you are using the latest WPAdverts Authors version try disabling it, go to wp-admin / Settings / Permalinks panel, click “Save Changes” button and see if this resolves your issue.

    Thread Starter freizeitmonster

    (@freizeitmonster)

    UPDATE: topic is not solved, yet.

    The WP Adverts Authors plugin is causing the issue. When I disable the plugin, the links are working. BUT: the links to the single ad arent working. It is so annoying. I just want that everything works seamless.
    Can you please take a look at the website?

    Can i send you the credentials?

    P.S.: The changes are only working with the taxonomy files in the theme folder. Unfortunately I can’t overwrite the design of the page with Elementor. If that is possible, it will be peeeeeeerfect. Any idea?

    • This reply was modified 1 month, 3 weeks ago by freizeitmonster.
    • This reply was modified 1 month, 3 weeks ago by freizeitmonster.
    • This reply was modified 1 month, 3 weeks ago by freizeitmonster. Reason: Topic not solved, yet
    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    hmm, can you create with Elementor a template for the “advert” Custom Post Type?

    If you can then add the code below in your theme functions.php file

    
    add_shortcode( "advert_single", function( $args ) {
        ob_start();
        if( isset( $args["post_id"] ) ) {
            $post_id = $args["post_id"];
        } else {
            $post_id = get_the_ID();
        }
            
        $post_content = get_post( $post_id )->post_content;
        $post_content = wp_kses($post_content, wp_kses_allowed_html( 'post' ) );
        $post_content = apply_filters( "adverts_the_content", $post_content );
            
        include apply_filters( "adverts_template_load", ADVERTS_PATH . 'templates/single.php' );
        $content = ob_get_clean();
    
        return $content;
    });
    

    and in the template use a [adverts_single] shortcode it should display the Ad details page for the current Ad.

    Thread Starter freizeitmonster

    (@freizeitmonster)

    Yes, I can create a Elementor template for adverts.
    Unfortunately the code and solution doesn’t work.
    I also updated the path in the code so that it can find the single.php, but that doesn’t help either.

    Isn’t it the easiest if I give you the login details and you look at it directly before we write hundreds of messages here?

    With this issue the whole project is useless 🙁

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    sure, please contact me via the contact form at https://wpadverts.com/contact/ I can take a look at your setup.

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