WP Plugin Q: How would I make this YARPP custom template?

2 replies
  • WEB DESIGN
  • |
Hey guys!

I'm working on an install of YARPP (Yet-Another-Related-Posts-Plugin) on my WP blogs for internal linking purposes, and I'm trying to activate the custom template option (which is currently not clickable on the YARPP dashboard) and I am trying to make a custom template that does the following.

I need the posts to work like this: The 2nd and 3rd listed post would be regular links to those posts and would just do what they do like normal (with the anchor text of the link being the post title [like normal]), but the 1st listed post would be a link to the homepage, using the originating page's optimized keyword as the anchor text.

So, iow, it would look something like the following. Assuming that it came from a page talking about "nursing colleges", and the root domain was basically something like "nursingeducation.com" or "nursetraining.com" or something of the sort, we would have . . .

"Related posts:

1. Nursing Colleges [pointing to the root domain]
2. Nursing Schools - How Do You Pick The Right One?
3. Best Nursing Schools - Does It Pay To Go Part-Time?"

This strategy is laid out in Craig's FastAttackSEO, but he doesn't go into great detail on how to go about creating your particular Related Posts box, since everyone has different approaches and solutions to website design. I thought the plugin approach would be easiest, and YARPP does allow for custom templating as of this latest version update.

Does that make sense? How would I go about doing that?

Thanks!
Chesh
#custom #make #plugin #template #yarpp
  • Profile picture of the author CheshireCat
    Forgot to add this.

    This is what the current template looks like:

    Code:
    <p>Related posts:</p><ol><li><a href='http://www.blue-widgets-a-go-go.com/example-post-1/' rel='bookmark' title='Example post 1'>Example post 1 <abbr title="0.000000 is the YARPP match score between the current entry and this related entry. You are seeing this value because you are logged in to WordPress as an administrator. It is not shown to regular visitors.">(0)</abbr></a></li>
    <li><a href='http://www.blue-widgets-a-go-go.com/example-post-2/' rel='bookmark' title='Example post 2'>Example post 2 <abbr title="0.000000 is the YARPP match score between the current entry and this related entry. You are seeing this value because you are logged in to WordPress as an administrator. It is not shown to regular visitors.">(0)</abbr></a></li>
    <li><a href='http://www.blue-widgets-a-go-go.com/example-post-3/' rel='bookmark' title='Example post 3'>Example post 3 <abbr title="0.000000 is the YARPP match score between the current entry and this related entry. You are seeing this value because you are logged in to WordPress as an administrator. It is not shown to regular visitors.">(0)</abbr></a></li>
    </ol>
    I'm imagining that the first post would be something like . . .

    <li><a href='htp://www.blue-widgets-a-go-go.com/' [pointing directly to the root domain] rel='bookmark' title='Example post 1'>%keyword% [some keyword call out code for that page's optimized keyword]<abbr title="the YARPP match score . . . [yadda yadda yadda] . . . not shown to regular visitors.">(0)</abbr></a></li>

    Does that make sense? Any ideas?

    Chesh
    {{ DiscussionBoard.errors[4585857].message }}
    • Profile picture of the author CheshireCat
      Is this not the best forum for this question? Is there a better forum?

      Chesh
      {{ DiscussionBoard.errors[4600821].message }}

Trending Topics