• Resolved fabryven

    (@fabryven)


    hello, i have a serious problem with the plugin using the astra child theme.(changing the theme and switching to a default theme the problem does not exist)

    basically clicking or viewing a category, the plugin displays all ads in an infinite loop and crashing site and server

    would there be a solution to this problem?

    The page I need help with: [log in to see the link]

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

    (@gwin)

    Hi,

    most likely to avoid the conflict you would need to:

    1. in the wp-admin / Classifieds / Options / Core / Types / Adverts Categories panel click on Rendering in Render Type select “None” and save the settings.
    2. create a taxonomy-advert_category.php template file as explained here https://wpadverts.com/doc/child-themes-and-templates/ in the “Custom Taxonomy Template” section except in place of the second snippet use
    <?php
    include_once ADVERTS_PATH . '/includes/class-block-templates.php';
    $block_templates = new Adverts_Block_Templates;
    echo do_blocks( $block_templates->get_taxonomy_template( 'advert_category' ) );
    ?>

    Thread Starter fabryven

    (@fabryven)

    wow! great!
    now it works perfectly, thank you!

    Thread Starter fabryven

    (@fabryven)

    but i need another advice……..(always using astra theme.)

    I can’t modify the single ad template (single.php) in any way

    I created within the child theme, the single-advert.php file and inside it I copied single.php (from astra)

    then I tried editing the wpadverts/templates/single.php file
    but I can’t make any changes.

    where am i wrong?

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    unfortunately, the child templates work only with the old shortcoded mode, we do not allow them in blocks mode (at least not yet) because the designs are still subject to change so we do not want users to have templates that could be incompatible with new WPAdverts releases.

    If you realy want to create your own template for the ad details pages (not recommended) then you can:

    1. go to the wp-admin / Classifieds / Options / Core / Types panel, edit the “Classifieds”, click on the “Rendering” tab, in the “Renderer Type” select “None” and save the settings.
    2. in your theme folder create a file single-advert.php and copy to it content from the single.php or page.php file (these files should also be in your theme folder)
    3. in the single-advert.php replace the_content() call with your own template code.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘category infinite loop’ is closed to new replies.