Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'codes'

Viewing 25 results - 1 through 25 (of 1,702 total)
  • Author
    Search Results
  • #246843

    In reply to: SEO Index Forum

    Vinay PN
    Participant

    Here are some ways to add or customize the title and meta description for the bbPress forum index:

    1. Use an SEO Plugin That Supports Custom Post Types and Archives
    bbPress forums often rely on custom post types and archive templates.

    Ensure Yoast SEO is configured to handle bbPress custom post types and their archives.

    In Yoast SEO > Search Appearance > Content Types and Archives, check if bbPress forums and topics are enabled and configured properly.

    For the main forum index (bbPress’ main forum page), this is often considered an archive page. Yoast allows customization of archive titles and meta descriptions via the Archives tab.

    2. Add Custom Code via Functions.php or a Custom Plugin
    You can programmatically set the title and meta description on the bbPress forum index with code snippets. For example:

    php
    function custom_bbpress_forum_index_seo() {
    if ( function_exists( ‘is_bbpress’ ) && is_bbpress() && !is_singular() ) {
    // Set custom title
    add_filter( ‘pre_get_document_title’, function() {
    return ‘Your Custom Forum Title – Your Site Name’;
    });

    // Set custom meta description
    add_action( ‘wp_head’, function() {
    echo ‘<meta name=”description” content=”Your custom meta description for the forums index page goes here.” />’ . “\n”;
    });
    }
    }
    add_action( ‘wp’, ‘custom_bbpress_forum_index_seo’ );
    This snippet checks if it’s a bbPress page but not a single topic or forum (index page), then overrides the title and adds a meta description.

    3. Use a Dedicated SEO or Meta Tag Plugin
    Alternatively, plugins like All in One SEO, Rank Math, or WP Meta SEO may provide greater flexibility to add meta tags for archive/custom pages.

    4. Use a Page as a Forum Landing Page Instead of bbPress Default
    Instead of using the default bbPress forum index, you can:

    Create a regular WordPress page.

    Use that page as your main forum landing page.

    Insert bbPress shortcodes or specific forum content there.

    This way, you can edit the page’s SEO title and meta description directly with Yoast.

    website design company bangalore

    #245833
    Robin W
    Moderator

    now corrected in codes, to this

    /**
    * WordPress function for redirecting users on login based on user role
    */
    function my_login_redirect( $url, $request, $user ){
    if( $user && is_object( $user ) && is_a( $user, 'WP_User' ) ) {
    if( $user->has_cap( 'administrator' ) ) {
    $url = admin_url();
    } else {
    $url = home_url();
    }
    }
    return $url;
    }
    add_filter('login_redirect', 'my_login_redirect', 10, 3 );
    jamieFL
    Participant

    Hello,

    I’ve searched, but I don’t even know what to call what I’m looking for. You know that toolbar above the post? It can bold and italicize, etc. I would like a list of the html tags, if that is what they are called, that can be used within a post. I am creating a forum that will have a lot of YAML and Python code snippets and I want them boxed, or separated some how. I want to create a sticky post showing these codes, what they look like, and how they render…but, I can’t figure out how to post the html tag without it rendering. Sorry if I offended anyone with this basic question, but as I said…I don’t know what to search for.

    How do I add the <b>You may use these HTML tags and attributes:</b> to the bottom of my post page? That may solve my problem.

    #245401
    Robin W
    Moderator

    do come back if you are able top tell me the error codes, quite happy to try and help further

    alm1
    Participant

    Wordpress: 6.8.1
    bbPress: 2.6.13.

    shortcodes on my Forum page:
    [bbp-topic-index]
    [bbp-topic-form forum_id=846]

    website: https://www.pcrnmra.net/redwood/
    Forum page R.E.D. “Crew Lounge”

    My site has only one forum (id=846), but when I add the shortcode
    [bbp-topic-form forum_id=846], the dropdown for Forum: still defaults to –No forum –.

    I researched this and found that the shortcode
    [bbp-topic-form forum_id=846] is supposed to fix this, but it is not working for me.

    TIA

    #243076

    In reply to: Private messages

    Here are a few options:

    bbPress Messages: This plugin offers a simple yet powerful private messaging system tailored specifically for bbPress. It includes features like message caching for faster performance, background processing for tasks such as email notifications, and support for shortcodes and widgets.
    JA.WORDPRESS.ORG

    Better Messages: A comprehensive real-time private messaging system compatible with bbPress, BuddyPress, and other WordPress platforms. It provides features like live chat, file uploads, emoji support, message editing and deleting, and even audio and video calls.
    JA.WORDPRESS.ORG

    bbPress – Private Replies: This plugin allows forum participants to mark their replies as private, meaning only the original poster and forum moderators can view the content. It’s particularly useful for support forums where users may need to share confidential information.

    #242744
    Tamas Rottenbacher
    Participant

    Hi,

    Thanks, I’m found Your solution/plugin and it work, but it needs lot of custom css fix. (Sample: the widht, style plugin add %, but i would like use the editor (FSE) widht value.

    It’s very strange to me that bbPress, which is an Automatic plugin and isn’t compatible with the WP Core theme. I wouldn’t “expect” a block editor structure, just that it works with shortcodes. And i would like to minimalize the plugins number. =/

    #242496

    In reply to: Edit profile link

    Robin W
    Moderator

    thanks,

    1. so can you confirm that with the footer option set at

    'If you are using shortcodes in your footer, this option should ensure they display correctly '

    The shortcode in the footer works.

    2. on the GCS problem, does this only happen on ‘forum’ pages, or is it throughout the site?

    #242492

    In reply to: Edit profile link

    yt
    Participant

    Yes, I enabled the option:

    If you are using shortcodes in your footer, this option should ensure they display correctly

    in the previous update you provided and it is still enabled.

    #242434

    In reply to: Edit profile link

    yt
    Participant

    2- With the update of the bbp style pack plugin to the new version, a new problem appeared related to the Google Search Custom activation code (gsc) on a personal site, explaining that:
    I use the gsc code in the Custom HTML block in the site header to activate Google Search on the site.

    Before updating the above plugin, there was no problem in executing the above code on the site and forum, but as soon as the plugin was updated and even before activating
    If you are using shortcodes in your footer, this option should ensure they display correctly
    It was observed that the words #gsc.tab=0 were added to the end of every address, including the site and forum, such as

    خانه

    and
    https://ghazavatonline.ir/forums/#gsc.tab=0

    and
    https://ghazavatonline.ir/concept-corruption-and-prostitution-in-article-639-islamic-penal-code-tazirat/

    This problem is such that it cannot be solved by disabling the add-on and inevitably the entire code from the above block must be deleted, which I also inevitably deleted.

    It is also worth mentioning that, to make sure that the recent problem is related to the bbp style pack plugin, I created a test site and activated the previous version of the plugin and used the Google code. There was no problem with the site and forum addresses, but after updating the plugin, it was noticed that the problem with the mentioned addresses appeared.

    Is it possible to solve the recent problem in particular?

    Thank you for all your hard work and honest efforts.

    #242433

    In reply to: Edit profile link

    yt
    Participant

    Hello Mr. Rubin
    Thank you for your efforts in solving the problem and updating the plugin.
    Since it was not possible to send the entire answer at once, I will send it in two parts:

    1- I updated the plugin and enabled the option
    If you are using shortcodes in your footer, this option should ensure they display correctly
    but unfortunately the problem of not displaying the shortcode in the footer of the site and the forum was not resolved and still remains, which you can see on the site and the forum at the following address:

    خانه


    and
    https://ghazavatonline.ir/forums/

    * It is worth mentioning that, with the plugin update, the problem of not being able to view all templates in the site editor section, which I had previously announced, was also resolved. I do not know if it was related to the shortcode problem or if you fixed it separately. In any case, thank you very much for fixing this problem.

    #242367

    In reply to: Edit profile link

    yt
    Participant

    Thank and that very kind of you, Mr Robin.

    In addition, as the 2025 WordPress block theme has other problems with your “bbp style pack” plugin, if it is possible for you to check and fix them.

    These are:

    1- When the bbp style pack plugin is active and you go to the theme editor section and click on Show all templates, only one template is displayed, not all templates that can be selected. The problem is solved by disabling the plugin.

    2- In the Topic/Reply Form plugin tab, in section 18. Limit Topic Tags to a list, when this option is activated and you refresh the site, at the same time and a little later it causes the editor section to go to the bottom right and the forum template to be broken.

    3- In the Topic/Reply Form plugin tab, in section 10. Topic Posting Rules, when the visual editor is activated, HTML codes are also inserted into the text, while this should not be the case.

    4- When the sidebar is activated for the forum through the bbp style pack plugin block or by ourselves, this sidebar is only displayed on the first page of the forum or the forum index, but is not displayed on the pages of subforums and topics, while like the classic template, it should be displayed on all sidebar pages.

    Thanks in advance.

    #242353

    In reply to: Edit profile link

    Robin W
    Moderator

    After some research, I have found that the newer FSE themes (such as twenty 25)have an issue where shortcodes will not work in footers for what are called hybrid templates.

    I am working on a solution, hopefully with a resolution in then next couple of days

    #242206

    In reply to: Edit profile link

    Robin W
    Moderator

    I understand what you want to do, it requires code which is in my plugin.

    If you don’t want to use my plugin, the code is in the shortcodes.php file in the plugin, feel free to use it.

    #242204

    In reply to: Edit profile link

    Robin W
    Moderator

    Install

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>shortcodes

    and look at ‘Display profile link’ for how to use the shortcode.

    Then simply add the shortcode using a ‘shortcode’ block wherever you want it

    #242023
    Stephen B
    Participant

    Yes, I’ve tried the other shortcodes as well and the same issue happens with all of them

    #241399
    uksentinel
    Participant

    Take a look at the below link as this works for a logged in user. The three shortcodes should help achieve what you are looking for.

    bbp topic count

    #241383
    Kokiri
    Participant

    Hello,

    So I am trying to add Topics Counts and Reply counts in a widget box on activity page or member profiles – I’ve tried BBP Style Pack and the shortcodes don’t work.

    Any suggestions?

    #241076
    neon67
    Participant

    Еverything according to the recipes bbP shortcodes 2.8 – works. Stickies are always shown if they are marked by the admin.
    There were several layers in my CSS code – I need to figure it out. I just wanted to make sure that everyone’s bbP shortcodes 2.8 is working properly.

    #241039
    neon67
    Participant

    Thanks for your feedback!
    I use the bbP shortcodes 2.8 plugin only, don’t have the style pack plugin. The bbp-display-topic-index shortcode works great with both double or single quotes—everything! except for sticker management. In the web code, the line that I want to disable is written as .bbp-topics ul.super-sticky, .bbp-topics-front ul.super-sticky – this is all standard, I didn’t change anything.

    Maybe the problem is the shortcode is used twice on the page? I plan to allow stickers in one block, but prohibit them in the second – other forums and stickers are not appropriate there.

    #241038
    Robin W
    Moderator

    I think you are using the style pack plugin shortcodes, in which case it is bsp not bbp.

    Also the above is using the wrong apostrophies, it may be because you pasted without using the code button

    This should work

    [bsp-display-topic-index show="6" forum ="2692,2696,2697,2698,2700,2702" show_stickies="false"]

    If not come back

    #241028
    Ketil Ervik
    Participant

    In css of the style pack plugin. But i have try also try it on theme’s custom codes, but nothing happen!

    #241025
    neon67
    Participant

    Hi. I use a shortcode from bbP shortcodes like [bbp-display-topic-index show=’6′ forum =’2692,2696,2697,2698,2700,2702′ show_stickies=’false’] Question about Stickies – the display does not depend on this records – false or true. I even tried to write no – it doesn’t help either, the topics are always shown at the top.
    BBpress 2.6.11
    How is this solved?

    Dean Scott
    Participant

    I just discovered more at the end of the PHP error…

    LIMIT 0, 15 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), apply_filters(‘template_include’), WP_Hook->apply_filters, bbp_template_include, apply_filters(‘bbp_template_include’), WP_Hook->apply_filters, bbp_template_include_theme_compat, BBP_Shortcodes->display_topic, bbp_get_template_part, bbp_locate_template, load_template, require(‘/plugins/bbpress/templates/default/bbpress/content-single-topic.php’), bbp_has_replies, WP_Query->__construct, WP_Query->query, WP_Query->get_posts

    Is this helpful?

    Yes, I’ve switched to 2024 theme AND deactivated all plugs, one-by-one. Same error.

Viewing 25 results - 1 through 25 (of 1,702 total)
Skip to toolbar