tag
at the end of posts that have more than a minimum length. You can modify the plugin's
sphere-related-content.php file to change that behavior. There are instructions in that file,
but here are the basics:
If you NEVER want Sphere links inserted automatically, or if you want to decide where to place
the link, rather than having it appended to your posts automatically, then set $auto_sphereit to
FALSE below and follow the instructions in the readme to customize the look and placement of the link.
If you want Sphere links inserted into ALL of your posts, then set $sphereit_threshold to FALSE below.
You can always force a Sphere link to be inserted by including `` in the text of a post.
You can force a Sphere link NOT to be inserted by including `` in the text of your post.
If you're not sure what to do, leave the settings below at their default value.
7. You can always force a Sphere link to be inserted into a post by putting
`` anywhere into the post's text. That comment will not be displayed, but will force
a Sphere link to be inserted for that post.
8. Conversely, You can keep a Sphere link from being inserted in a post by adding
`` to that post. Again, this marker will not be displayed, but will prevent
a Sphere link from being shown for that post.
9. If you want to override the default placement of the link, you should:
i) Turn off $auto_sphereit by setting
`$auto_sphereit = FALSE;`
in sphere-related-content.php (search for auto_sphereit to find that line).
ii) Put this tag anywhere with in a post context (either in your index, archive or single post templates):
`= get_sphereit_link( get_permalink(), $post->post_content ) ?>`
If you want to wrap a block-level element around the Sphere link you can do something like this:
`= (enableSphereItLink($post->post_content) ? ''.get_sphereit_link(get_permalink(), $post->post_content).'
' : '') ?>`
The enableSphereItLink() check makes sure that your tags are only gong to show up if the Sphere link is turned on
for that post, as decided by the length of your post or your overrides.
If you're doing your own block-level element like this, you'll want to define stules for in your CSS template, e.g.
`
.sphere {
padding: 10px;
margin: 10px;
border-left: 2px solid red;
}
`
Note these styles are an example only, you can go crazy with the styles and make it look just so in your blog.
That's it, you're ready to discover Sphere Related Content. Automatically.
== Requirements ==
1. Your WordPress theme must contain a call to the get_header() function
2. Your WordPress theme must contain a call to the the_content()function
== Support ==
Please contact Sphere: http://www.sphere.com/feedback