• Hi. First, I’m sorry this is probably a really silly issue. In my own mind, this should be simple but I’ve been on it weeks. Searching code and youtube and plugins to find an answer. I would really really like to use default WP comments but I am open to plugins. So, all I really want to do is allow commenting on any given page…but have the comment NOT then display on said page. But rather, go straight to recent comments or post page or or normal posts or whatever. Somewhere else contained.

    I use Elementor Pro, Astra free and bbpress

    Is there some code for my theme’s child? Surely, there is. Submit redirect? I just can’t figure it out. Or should I make bbpress act like comments? That plugin seems outdated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You can amend your theme with a child theme to not show the comments section on each page. It would still show the comment form.
    But it doesn’t make sense where you want to see the comments. ??
    Putting all comments in one place makes a very disjoint mess.
    And like this site, bbpress uses posts and comments to do its thing.

    Thread Starter StormD

    (@stormd)

    Thank you so much for responding. I want to display them elsewhere bc that is what I want to do. I won’t have that many comments. I don’t really need a blog. So all of these big text boxes and author boxes clutter everything. I want it all in one place. The trouble is that I don’t know how to amend my child theme to make that happen. If you know how to help, that would be fabulous.

    Thanks again.

    Here is the link for child themes.

    This is the function that outputs the comment form, where the user types in the comment.
    https://developer.www.ads-software.com/reference/functions/comment_form/
    It is usually called close to the output of the comments. The output is usually standard, by using comments_template(), or custom coded in something like comments.php where functions from this list are called.

    Since each comment is stored with a post ID, core is set up to retrieve them that way. In order to display them all together, you might not be able to use the core functions. You might have to query and output them yourself. I’ve never looked into that code, so I don’t know if there are some easy filters to change the query to get all comments or what. Even the comment feed functions are for specific posts, I think.

    Ah, but I just searched on Plugins, and found
    https://www.ads-software.com/plugins/show-all-comments-in-one-page/

    Thread Starter StormD

    (@stormd)

    Thank you again, Joy

    Again. I’m trying but I am not a programmer and I don’t understand code. I understand theory. But not detail. So, I looked at that list and I looked at comments.php and found the code that seemed to be about display (comments_link). is this possibly it?

    <?php if ( get_comment_pages_count() > 1 && get_option( ‘page_comments’ ) ) : ?>
    <nav id=”comment-nav-above” class=”navigation comment-navigation” aria-label=”<?php esc_html_e( ‘Comments Navigation’, ‘astra’ ); ?>”>
    <h3 class=”screen-reader-text”><?php echo esc_html( astra_default_strings( ‘string-comment-navigation-next’, false ) ); ?></h3>
    <div class=”nav-links”>

    <div class=”nav-previous”><?php previous_comments_link( astra_default_strings( ‘string-comment-navigation-previous’, false ) ); ?></div>
    <div class=”nav-next”><?php next_comments_link( astra_default_strings( ‘string-comment-navigation-next’, false ) ); ?></div>

    </div><!– .nav-links –>

    I tried something…I don’t really remember bc my brain hurts..but it broke the whole thing. So lol i’m asking first. I have the child. Some documentation will say things like add this to functions and add that to page/style/whatever. That is about my scope of understanding. Or maybe is display not the word I should be looking for?

    That code is part of it. It is the part that shows the navigation links for older and newer comments. But it isn’t the part that shows the comments themselves.
    You might be better off asking in the theme’s support forum.

    Thread Starter StormD

    (@stormd)

    Thank you, Joy.

    I think I should give up. It’s apparently a stumper. About the time I resign myself to some plugin solution, WP will give us a checkbox ??

    My best to you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Comment Submit Redirect’ is closed to new replies.