Multiple Forums…

26.49K viewsCore
1

It’s not as strange as it seems…

The idea is simple enough, the person who asked me the question wants to show a forum in 2 areas of the site but have each display specific categories.

The shortcode would look omething like this:

anspress category="boats, cars, trucks"

…then in another area of the site we could use:

anspress category="music, videos, paintings"

Simply using the shortcode anspress would show all categories as expected.

So why split the categories? In this case we would like to keep specific categories private for members with the other as a public area รขโ‚ฌโ€ but we don’t even the public to know what categories exist in the member area.

Nothing changes on the backend admin section.

If it’s a simple loop then I can add the code manually (if it’s possible).

Sincerely,
Simon

1

Guys, I have improved

AnsPress shortcode cannot be nested.

shortcode.

AnsPress shortcode cannot be nested.

Attributes:

	 $categories slug of question_category
	 $tags slug of question_tag
	 $tax_relation taxonomy relation, see here http://codex.wordpress.org/Taxonomies
	 $tags_operator operator for question_tag taxonomy
	 $categories_operator operator for question_category taxonomy

Try and let me know.

Amazing! Will download and test in the morning.

I downloaded the latest from github and installed it. I created a new page and added the following shortcode:

[anspress categories="test-category-one"]

When I go to the page (sorry, the site is private at the moment) all I see is “No question asked yet!, be the first to ask a question.”

But if I go to the AnsPress base page the new category and question appear there with all the others (this is expected).

I’m sure I did something wrong, maybe github is not where the changes were posted?

Downloaded it a second time because when I tried it last night the archive did not have these changes. The archive I just downloaded *does* have the new changes.

I get white screen of death on staging site, reverted to 2.0.0 alpha 2.

on base page use without any attributes,for for other pages like home you can use attributes in shortcode

Ok, I thought I was smart enough to download the latest build from git but apparently not. How can I get an archive of the latest anspress with your changes from yesterday? Apparently I managed to mix 2.0 and 1.4 yesterday… ๐Ÿ˜›

Ok, I have it working. Looks great!

0

Why people insist to use FAQs plugins for a Forum is beyond me.

I probably misused the word *forum* in the traditional sense. We don’ need the full-blown features a forum offers as these can be top heavy and add overhead for a small team. In our case a plugin which can post questions and allow the members to promote the best answer is more than enough. I’m also looking at CM Answers which *does* allow for displaying specific categories in various places.