AP Schema Options

'; ?>

Check out ApinaPress.com for Wordpress and Internet Marketing tips and tricks.

Follow me on:

'; ?> '; ?> '; ?>

Sign up to get Wordpress, Coding and Internet Marketing tips.

Recieve a FREE copy of my ebook:

HTML and CSS Primer for Internet Marketers.

Did you find this plugin useful?

Why not help keep this free by sending me a donation via Paypal or buying me a gift from my Amazon Wishlist?

'; ?>
'; ?>

HelpEnter your name or the name of the review author.



HelpIf you go to your own G+ profile page and look at the address bar in your browser you will see a section of the url that looks like this 1017012365479856386228, this is the code you need to put here.

You will need to make sure that your webnsite is linked to your Google plus account! See here for Googles own instructions.





checked="checked"/> /> /> />

You will need 3 images: a full star, a half star and an empty star. Enter the URLs in the fields below.



Leave blank to keep the default styles, or add CSS to change it to suit your site.

Overall Box

HelpEnter the width you want, in pixels. I.e. 500px
HelpEnter a basic colour name such as Red, White, etc or use a hex code #000000 is black, #ffffff is white. Hex codes
HelpFormat: #000000 thin solid
= Colour thickness style. Thickness can be in pixels i.e. 2px. Style is Solid, dashed, dotted, double.
HelpFormat: 0px 0px 0px 0px = Top/Right/Bottom/Left. Just change the 0 to a better number, they dont have to be the same.
HelpFormat: 0px 0px 0px 0px = Top/Right/Bottom/Left. Just change the 0 to a better number, they dont have to be the same.

HelpChanges the image from being on the right to the left. />

HelpMakes the corners slightly rounded. />

The Author Box

HelpIf the overall box width is narrow and your image is moving down, add a width here in either pixels or percent (e.g. 300px or 70%).

The Stars

HelpFormat: 0px 0px 0px 0px = Top/Right/Bottom/Left. Just change the 0 to a better number, they dont have to be the same.

The Image

HelpFormat: 0px 0px 0px 0px = Top/Right/Bottom/Left. Just change the 0 to a better number, they dont have to be the same.

HelpOnly needed if you use a narrow width, in a sidebar for example. />



After you have filled out the options above follow these instructions:


Go to a new or existing post or page.

Look for the AP Schema box below the area where you type in the post content. You may need to scroll down a bit.

If the AP Schema box is not there, fear not! Go to the top of the page, right hand corner. Click "Screen Options", tick the AP Schema box

Make sure you tick the "Turn AP Schema Review Box On For This Post?" tickbox. This turns the review box on and off on a per post basis, so you can have posts without reviews or turn off old reviews no longer needed.

Fill out the fields in the AP Schema box:

Your Rating field - 1 to 5 and can accept fractions like 2.5

Title/Keyword - This is the Title of the review box - try and use the Keyword(s) you are targetting, as it assists with SEO.

Affiliate Link - put your affiliate link here to make the image (see below) go to your affiliate product site.

Product Image - add an image url here to add a thumbnail (small) image to the review box.

Product Summary - This is where you put your summary of the product.

Publish or update your post or page.

Done!

ID ); $apschema_keyword = isset( $values['my_meta_box_keyword'] ) ? esc_attr( $values['my_meta_box_keyword'][0] ) : ''; $apschema_afflink = isset( $values['my_meta_box_afflink'] ) ? esc_attr( $values['my_meta_box_afflink'][0] ) : ''; $apschema_producturl = isset( $values['my_meta_box_producturl'] ) ? esc_attr( $values['my_meta_box_producturl'][0] ) : ''; $apschema_productdesc = isset( $values['my_meta_box_productdesc'] ) ? esc_attr( $values['my_meta_box_productdesc'][0] ) : ''; $apschema_rating = isset( $values['my_meta_box_rating'] ) ? esc_attr( $values['my_meta_box_rating'][0] ) : ''; $apschema_display = isset( $values['my_meta_box_display'] ) ? esc_attr( $values['my_meta_box_display'][0] ) : ''; $apschema_bottom = isset( $values['my_meta_box_bottom'] ) ? esc_attr( $values['my_meta_box_bottom'][0] ) : ''; $apschema_custom_date = isset( $values['my_meta_box_custom_date'] ) ? esc_attr( $values['my_meta_box_custom_date'][0] ) : ''; $apschema_todays_date = isset( $values['my_meta_box_todays_date'] ) ? esc_attr( $values['my_meta_box_todays_date'][0] ) : ''; // styles wp_nonce_field( 'my_meta_box_nonce', 'meta_box_nonce' ); ?>
/>
/>

Optional

Dates - if these are left blank, the date that the post was published will be used.
/>
array( // on allow a tags 'href' => array() // and those anchords can only have href attribute ) ); // Probably a good idea to make sure your data is set if( isset( $_POST['my_meta_box_keyword'] ) ) update_post_meta( $post_id, 'my_meta_box_keyword', wp_kses( $_POST['my_meta_box_keyword'], $allowed ) ); if( isset( $_POST['my_meta_box_custom_date'] ) ) update_post_meta( $post_id, 'my_meta_box_custom_date', wp_kses( $_POST['my_meta_box_custom_date'], $allowed ) ); if( isset( $_POST['my_meta_box_afflink'] ) ) update_post_meta( $post_id, 'my_meta_box_afflink', wp_kses( $_POST['my_meta_box_afflink'], $allowed ) ); if( isset( $_POST['my_meta_box_producturl'] ) ) update_post_meta( $post_id, 'my_meta_box_producturl', wp_kses( $_POST['my_meta_box_producturl'], $allowed ) ); if( isset( $_POST['my_meta_box_productdesc'] ) ) update_post_meta( $post_id, 'my_meta_box_productdesc', wp_kses( $_POST['my_meta_box_productdesc'], $allowed ) ); if( isset( $_POST['my_meta_box_rating'] ) ) update_post_meta( $post_id, 'my_meta_box_rating', wp_kses( $_POST['my_meta_box_rating'], $allowed ) ); // This is purely my personal preference for saving checkboxes $chk = ( isset( $_POST['my_meta_box_display'] ) && $_POST['my_meta_box_display'] ) ? 'on' : 'off'; update_post_meta( $post_id, 'my_meta_box_display', $chk ); $chk = ( isset( $_POST['my_meta_box_bottom'] ) && $_POST['my_meta_box_bottom'] ) ? 'on' : 'off'; update_post_meta( $post_id, 'my_meta_box_bottom', $chk ); $chk = ( isset( $_POST['my_meta_box_todays_date'] ) && $_POST['my_meta_box_todays_date'] ) ? 'on' : 'off'; update_post_meta( $post_id, 'my_meta_box_todays_date', $chk ); }