First Cat: Uncategorized

Cat String: Uncategorized

Published Timestamp: 1579409256

Current Timestamp: 1611125604

Seconds Since Publish: 31716348

Days Since Publish: 367

Days Since Updated: 319


FAQ Section

This is a Frequently Asked Question

This is the answer


Shortcode Text

Note: Trim double brackets to single brackets.


[faq_question]] This is a Frequently Asked Question [[/faq_question]

[faq_answer]] This is the answer [[/faq_answer]


Code (Add to Functions.php)

function faq_section_start_function($atts){
$code_return = ‘<div itemscope=”” itemType=””>’;
return $code_return;
add_shortcode( ‘faq_section_start’, ‘faq_section_start_function’ );

function faq_question_function($atts, $content = null){
$code_return = ‘<div itemscope=”” itemProp=”mainEntity” itemType=””><div itemProp=”name”><h3>’.$content.'</h3></div>’;
return $code_return;
add_shortcode( ‘faq_question’, ‘faq_question_function’ );

function faq_answer_function($atts, $content = null){
$code_return = ‘<div itemscope=”” itemProp=”acceptedAnswer” itemType=””><div itemProp=”text”><p>’.$content.'</p></div></div>’;
return $code_return;

function faq_section_end_function($atts){
$code_return = ‘</div>’;
return $code_return;

Leave a Reply

Your email address will not be published. Required fields are marked *