Search Results for 'code'
-
Search Results
-
Topic: seachform shortcode
I used the shortcode[bbp-search] make seachform.
I want to change border color and size of this searchform.
So I wrote CSS like this.#bbp_search {
border-color:#0c162a important!;
width:50%;
}But the design did’t change.
What CSS should I write?A few months ago I played around with popular SEO plugins. Unbeknownst to me, one of them created a sitemap that included over 50,000(!) individual topic reply pages, and Googlebot indexed over 20,000 of them…making my site run out of crawler quota.
I didn’t notice the problem until Google went from instantly indexing my articles to ignoring them until manually submitted.
Blocking the community/reply/* URL in robots.txt has little effect because it only blocks googlebot from visiting the URL format again – it doesn’t drop the existing indexed pages.
So I added this to a custom plugin:
add_action("wp_head", function () { if (substr($_SERVER['REQUEST_URI'], 0, 17) == "/community/reply/") { echo '<meta name="robots" content="noindex">'; } } );
Self-explanatory – adds the noindex to the header of reply pages. If you’ve named the slugs differently, obviously edit them and the substr length count.
Let me know if you’ve experienced the same issue and how you went about fixing it. And.. what’s the point of the reply page any way? It’s just duplicate content because the reply is already listed in the thread.
Topic: Filter Replies by Tags
Hello all,
I’m working in PHP in WordPress. I’m comfortable modifying and editing code.
I have a collection of Musical Artists and their releases. I’ve created a topic for each artist (post type) and release (post type) using bbPress Topics For Posts.
The user then replies to the topic. I want them to be forced to choose a tag when they reply: “Buy”, “Sell”, or “Info”.
Then I want them to be able to click a button that only shows replies tagged “Buy”, “Sell”, or “Info”.
How do I create a button to filter replies in PHP? Thanks!
Here’s an example of an artist page with a discussion forum below
Hi,
I’m using WordPress 5.9.3 and bbPress 2.6.9.
I have checked the option for “Allow users to subscribe to forums and topics” in the bbPress settings. However, I don’t see the Subscribe/Unsubscribe button/link above a Forum. I do see the option to subscribe to a Topic when replying to a topic. I’ve tried viewing the forum while logged in with different user roles including Administrator but still no joy.I have even tried creating my own shortcodes to try and output the subscribe link but it doesn’t output anything. e.g. while in the loop, bbp_forum_subscription_link( array( ‘before’ => ”, ‘subscribe’ => ‘+’, ‘unsubscribe’ => ‘×’ ) )
Is there something I’m missing?
Hi, I’m using Buddyboss theme, and when a user creates a group with a forum, I need the forum to have by default certain topics set up, eg. ‘Rules’, ‘General Chat’ etc (so me/user doesn’t need to set these topics up every time a group is created). Not sure how to code this, any help appreciated, thanks!