WordPress.org

Ready to get started?Download WordPress

Forums

All In One Schema.org Rich Snippets
[resolved] Manual insertion (9 posts)

  1. lowlight
    Member
    Posted 9 months ago #

    Can you please tell me how to manually insert this in the content in single.php, and also we'll need to make sure to disable the automatic insertion.

    Thanks!

    http://wordpress.org/plugins/all-in-one-schemaorg-rich-snippets/

  2. Sujay
    Member
    Plugin Author

    Posted 9 months ago #

    AIOSRS doesn't insert anything automatically. Perhaps, you could elaborate your issue in more details with reference of links / screenshots?

  3. lowlight
    Member
    Posted 9 months ago #

    Of course it does, that's how the plugin works... It inserts the title, with some stars and a score... It puts it at the bottom of the content, but I wanted to see if I could put it below the comments box or something. But then I am worried that google will ignore it if it's down too low

  4. Sujay
    Member
    Plugin Author

    Posted 9 months ago #

    I see this is what you mean with automatic.

    For this to happen, you would need to dig into the function.php file included in the AIOSRS plugin directory.

    Regards,
    Sujay

  5. lowlight
    Member
    Posted 9 months ago #

    Hi I think you forgot to post the code ;)

  6. Sujay
    Member
    Plugin Author

    Posted 9 months ago #

    OK.

    I customized the function.php code for you which you can replace with the existing one.

    And add the code below in your theme file -

    <?php
     if(function_exists('display_rich_snippet'))
     {
      display_rich_snippet();
     }
     ?>

    Let me know if this helps.

    Regards,
    Sujay

  7. Sujay
    Member
    Plugin Author

    Posted 9 months ago #

    lowlight,

    Hope the customized code above will help you do what you wanted.

    BTW - I was wondering if you might able to spend a moment to support this free plugin with quality support? If you don't mind, I'd really appreciate if you could rate and leave a brief testimony for the plugin and support we provide on WordPress.org

    Here is the link to do this - http://wordpress.org/support/view/plugin-reviews/all-in-one-schemaorg-rich-snippets#postform

    Thank you very much in advance!

  8. vietnamsales
    Member
    Posted 5 months ago #

    well, I used it to embed a short code adding in the function.php of the theme file:

    add_shortcode('hotelsnippets', 'hotelsnippets');
    function hotelsnippets()
    {
    if(function_exists('display_rich_snippet'))
    {
    display_rich_snippet();
    }
    }

    It works well with
    [hotelsnippets]

  9. annepmitchell
    Member
    Posted 3 months ago #

    Vietnamsales or Lowlight (if you got it working) can you pretty pleae help me with this? I want to move the meta info box from the bottom of posts to the top of the posts... I tried the updated functions.php code and the php call that sujay provided, but that on its own didn't work, and I got kind of lost with the shortcode information.

    Thank you for any assistance you can provide!

    Anne

Reply

You must log in to post.

About this Plugin

About this Topic