Title: structured data QAPage
Last modified: September 14, 2019

---

# structured data QAPage

 *  [wasanajones](https://wordpress.org/support/users/wasanajones/)
 * (@wasanajones)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/structured-data-qapage/)
 * Hi – thanks for your plugin
 * do you have a trick to add JSON structured data to FAQ ?
 * regards,

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [wasanajones](https://wordpress.org/support/users/wasanajones/)
 * (@wasanajones)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/structured-data-qapage/#post-11931465)
 * oops, I don’t think that is the correct schema, but it really doesn’t change 
   the question
 * [https://developers.google.com/search/docs/data-types/faqpage](https://developers.google.com/search/docs/data-types/faqpage)
 *  Plugin Support [kenil802](https://wordpress.org/support/users/kenil802/)
 * (@kenil802)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/structured-data-qapage/#post-11936173)
 * Hi [@wasanajones](https://wordpress.org/support/users/wasanajones/),
 * Regarding your query, our developer is checking on how to add JSON structured
   data to FAQ and whether it is possible to add it or not. Once we check on it,
   we will get back to you with an update.
 * Regards,
    Kenil Shah
 *  Thread Starter [wasanajones](https://wordpress.org/support/users/wasanajones/)
 * (@wasanajones)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/structured-data-qapage/#post-11936211)
 * thanks, I’m pretty sure it can be added to existing php templates, should be 
   relatively easy
 *  [jwwv1](https://wordpress.org/support/users/jwwv1/)
 * (@jwwv1)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/structured-data-qapage/#post-11936937)
 * +1 on this feature request please!
 *  [joedev91](https://wordpress.org/support/users/joedev91/)
 * (@joedev91)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/structured-data-qapage/#post-12028162)
 * +1 to this feature. It’s so easy to implement and it give us a big improve.
 *  [joedev91](https://wordpress.org/support/users/joedev91/)
 * (@joedev91)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/structured-data-qapage/#post-12052927)
 * I added this code to solve this:
 * 
    // Add FAQ Page structured data when it’s necessary add_action( ‘wp_head’, 
   function () {
 *  $post = get_post();
 *  if ( ! $post instanceof WP_Error && $post->post_type == ‘faq’ ) {
 *  $json = [
    “@context” => “[https://schema.org/&#8221](https://schema.org/&#8221);,“
   @type” => “FAQPage”, “mainEntity” => [ “@type” => “Question”, “name” => $post-
   >post_title, “acceptedAnswer” => [ “@type” => “Answer”, “text” => $post->post_content]]];
 *  $html = ‘<script type=”application/ld+json”>’;
    $html .= json_encode($json);
   $html .= ‘</script>’;
 *  echo $html;
    } } );
 *  Thread Starter [wasanajones](https://wordpress.org/support/users/wasanajones/)
 * (@wasanajones)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/structured-data-qapage/#post-12054235)
 * hi – thanks, but in attempting to add to functions.php I get errors starting 
   at $json
 * no real explanation other than syntax error – tried changing ” marks but still
   flagged
 *  [arcticsail](https://wordpress.org/support/users/arcticsail/)
 * (@arcticsail)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/structured-data-qapage/#post-12059254)
 * +1 on this feature request please!
 *  [cebln](https://wordpress.org/support/users/cebln/)
 * (@cebln)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/structured-data-qapage/#post-12460685)
 * > thanks, but in attempting to add to functions.php I get errors starting at 
   $json
 * [@wasanajones](https://wordpress.org/support/users/wasanajones/) maybe you need
   more cleanup: have you tried replacing all curly quotes ” AND ‘ with simple quotes
   and adding a closing ” after the schema url instead of &#_8221;?
 * Unfortunately the concept does not work for me, my plugin-made FAQ pages are 
   on noindex to avoid double content. Instead I run FAQ groups all over the website
   on pages of all kind.
    I am now trying to figure out how to detect any occurrence
   of a faq group and run the JSON on that page too. That’s a little bit more tricky.
    -  This reply was modified 6 years, 3 months ago by [cebln](https://wordpress.org/support/users/cebln/).
    -  This reply was modified 6 years, 3 months ago by [cebln](https://wordpress.org/support/users/cebln/).
    -  This reply was modified 6 years, 3 months ago by [cebln](https://wordpress.org/support/users/cebln/).
    -  This reply was modified 6 years, 3 months ago by [cebln](https://wordpress.org/support/users/cebln/).
    -  This reply was modified 6 years, 3 months ago by [cebln](https://wordpress.org/support/users/cebln/).
 *  [cebln](https://wordpress.org/support/users/cebln/)
 * (@cebln)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/structured-data-qapage/#post-12500806)
 * I am now thinking that JSON-LD is not the best approach in this case and html
   microcode is easier to implement as that only means some extra markup instead
   of calculations.
 * Not sure this plugin is still maintained as I have not seen support here recently.
   Maybe this can be forked?

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘structured data QAPage’ is closed to new replies.

 * ![](https://ps.w.org/arconix-faq/assets/icon-256x256.jpg?rev=3050529)
 * [Arconix FAQ](https://wordpress.org/plugins/arconix-faq/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/arconix-faq/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/arconix-faq/)
 * [Active Topics](https://wordpress.org/support/plugin/arconix-faq/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/arconix-faq/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/arconix-faq/reviews/)

 * 10 replies
 * 1 participant
 * Last reply from: [cebln](https://wordpress.org/support/users/cebln/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/structured-data-qapage/#post-12500806)
 * Status: not resolved