Search Results for 'code'
-
Search Results
-
Topic: Two forum index pages?
Hi, i’m getting in a twist trying to sort out my forum index page. It seems like i have 2 versions of it.
When i setup my forum i created a new page called ‘chat’ and added the [bbp-forum-index]shortcode to it. Everything at first looks to be working great but when i click the index page in my breadcrumbs it takes me to a different index page called ‘forum’ which doesnt have the custom side bar that i set up (which is visible on my ‘chat’ index page and topic pages. One interesting thing is that this ‘forum’ index page picks up my theme styles nicely but my ‘chat’ one loses my theme font.
I have tried changing my forum slug to ‘chat’ to match my new page and this does resolve the breadcrumb/2 index page issue. BUT i then lose my custom side bar and still dont have the font styling.
I’m confused on what is going on here so i’m not clear where i need to head to get this sorted out. Should i be making my slug and forum page be named the same or is it that i need to work out why i have two index page? Any advice would be massively appreciated.
As a note, i used wp tweaks for my custom side bar although i already had SimplePage side bars installed which i use elsewhere on my site. Also, my site uses a custom permalink structure that includes category/post name rather than just the standard postname structure
I am using wp 4.0, bbpress v2.5.4 and here is a link to my site
Many thanks
Topic: Shortcode on the page php
How to make a page conclusion shortcode bbp-single-forum using custom fields?
I created a custom field ‘idbbp’, found ID single topic.
On the page posted the following code:<?php $idbbp = get_post_meta($post->ID, 'idbbp', true); $forum_id = bbpress()->current_forum_id = $idbbp; echo( bbpress()->shortcodes->display_forum($forum_id)); ?>but it does not work for me. Tell me please what I did wrong.
Hello,
I upgrated bbpress from 2.3 to 2.5.4 and the CODE tag doesn’t work. It execute code instead display. I have mess on each page when user pasted code wrapped by CODE tag.