BB Press Topic Template

Posted in: Newspaper
Post count: 97

Hi! I have already installed bbpress and using the same for topics and forum auto-generation.
In addition i have installed the “Automatic Featured Image Posts”, plugin.
This plugin generates a seperate custom post. (i have selected the topics as the desired custom post).
Whenever i upload an image via any post or just a post using the media uploader, an automatic custom post is generated.
I have installed one more plugin in order to add attachments to custom posts. (GD bbPress Attachments)
Now by default i am able to upload a media and generate a custom post automatically with the media. However the concern is the look of the custom post( for simplicity i am using bbpress topics).

Please let me know whether the following can be achieved.

1. Allocate a unique template to the topic (which is a custom post via bbpress).
Currently the topic is displayed as a normal post page.
2. I want to do the same when a video is added through the media upload.

I tried using the use a blank template option and then importing sections for the topic post(custom post look better)

The Custom post (created using bbpress isnt showing as per the template)

Basically I want to be able to change the default look of the topics.

List of Topics can be found here
https://newspatron.com/forums/page/2/

Here is the link to one of the topic that is auto-generated
https://newspatron.com/topic/trump-musk-modi-shah-fadnavis-shinde/

Please let me know if there is a way to achieve this

Imgur screenshots

Custom posts and bb press topics.

Post count: 20688

Hi,

Our cloud templates won’t apply to bbpress topics unfortunately. If you want to customize the topic design, you could try this plugin https://wordpress.org/plugins/bbp-style-pack/ Maybe with this plugin, and if needed with some additional CSS, it can be made to look more like the rest of the website.

As a note, if you want a sidebar for the topics you can set it here https://prnt.sc/8yafM69jh-LA and add widgets to it. Or if you don’t want it select the middle option there https://prnt.sc/trdg2iwa9poY

Hope this helps.

Thank you!

Post count: 97

Hello Thanks for your reply. I have installed the said plugin and tried to go through the settings.

What i wanted is “Ability to embed post via media url and media shortcode”.

Now Here is what i have tried to achieve.

On the forum post (custom post), I created a topic and i tried to use the shortcode, or the wordpress media url however the video via the shortcode or the url cannot be displayed on the topic post.
instead there is an error message on the topic post. (This topic post was created by me through the dashboard).

Here is the sample post error for your reference.
https://newspatron.com/topic/elon-musk-1998-internet-vision/

Instead of the embedded video the shortcode is displayed and also the url.
The only option I was left with was the option of hyperlinking the text (Watch Video)

Can you let me know if this can be fixed?

Also in the settings I have enabled the following.
“Embed media (YouTube, Twitter, Flickr, etc…) directly into topics and replies”

Post count: 20688

By default the forum reply field can’t run shortcodes. However, you could use this code https://pastebin.com/Wf1EPhXk It can be loaded in the theme functions file, or with a code plugin that loads it there.

I tried it as a test using a shortcode from one of the theme blocks
So without the code I get no block https://prnt.sc/3ZnocgqiuZrl
And with the code the block appears https://prnt.sc/ly9RJ2dNf5fT

The reply field should run shortcodes now. Please try it as well.

Thank you!

Post count: 97

Wonderful solution Simion! Thanks for the same
The reply field running shortcodes is even better!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.