Building a question and answer post type

Posted in: Newspaper
Post count: 38

I know there are third party plugins for this but i feel this would be quite simple to do if i could style the comments differently. Add a category called “question” and the title/post content would make up the question and then the comments could be the answers. Its already the perfect hierarchy. All i would need to do is use a different theme for posts of this category. I would style it so the comments are a more prominent part of the page so the user could clearly see the answers to the question at the top.

I was hoping there might be a cloud template for this but I couldn’t see one. I have tried creating this but I am struggling to restyle the comments to make them look more like answers to a question as opposed to traditional comments. Theres also no way to modify the title of the comment block to read “2 Answers” instead of “2 Comments”.

answers

Post count: 27744

Hi,

Please check this code to do a FAQ element https://we.tl/t-VCHmsz0nP0, and the code in Raw Html.

Thank you!

Post count: 38

Thanks Anamaria. The link results in a 0kb file called “A.txt” being downloaded. Is the link correct?

Post count: 27744

Hello,

Yes, add the code from the file to the raw HTML.

Thank you!

Post count: 38

Hey,

What HTML, the file you linked to is an empty file. I cant tell if you are being sarcastic here? Are you trying to suggest I figure it out myself?

Post count: 27744

Hi,

No, I’m not sarcastic. In the file is the code https://i.imgur.com/pM73rZz.png -> https://we.tl/t-EUDawEPEOB please check this one

Thank you!

Post count: 38

Thanks for this but this is a hardcoded FAQ. The image I attached to my first comment didn’t show up but I am trying to style the comments section to act as answers. The comment block for the cloud template doesn’t allow for me to change the title from X Comments to X Answers. I also do not know how to restyle the appearance of the comments. I wanted to make a dynamic Q/A section where someone could create a question and people visiting the page could answer the question. The comments section would serve as the answers

Post count: 27744

Hi,

Sorry for the misunderstanding. What you say seems to me that it sounds more like a forum, and you can use a plugin for this.
You can translate the comments section from Theme Panel -> Translations -> Translations
Also, the screenshots you provide don’t work -> https://i.imgur.com/TSGnw5W.png

A solution for sending a screenshot/video is this:
Download, capture, and send: https://www.techsmith.com/jing-tool.html
After making the screenshot, you will have a link; paste it here.

Thank you

Post count: 38

Hopefully this image works https://prnt.sc/9ZbYt1rjqVeS

The translation idea is a good one but i only need this to apply to this specific post type.

So I have hidden the comment title and made my own but it lacks the count. This is ok though. The problem is the comments themselves look like traditional comments. The comment form then uses the word comment which is confusing when it should be reading “answer”.

I have tried playing around with CSS to do something like element:after{content:’Submit Answer’;} but its kinda messy getting this to work too

Post count: 27744

Hi,

You can create a CPT -> https://forum.tagdiv.com/introduction-cpt-acf-newspaper-theme/and use it only for this. You can translate all elements from the Theme Panel.

Thank you!

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