go41

Display SEO SearchTerms Tagging 2 differently on templates

von Joern am 6. Jul. 2012 | Keine Kommentare

Using the plugin ‚SEO SearchTerms Tagging 2‘ I was looking for a way to display the related search terms differently on certain templates.
In the dashboard settings of SearchTerms Tagging 2 you can set to display with link to post content or to search or to show just the terms.
In the sidebar I like to show the link to the post, but on single posts it should come out without this link!
So to get the terms with a link to the post, you have to tick ‚with link to post content‘, now any code to manually insert the terms in a template will be with link, like:

<?php if(function_exists(’stt_popular_terms‘)) echo stt_popular_terms(10) ;?>
or just below the article:

<?php if(function_exists(’stt_terms_list‘)) echo stt_terms_list() ;?>
I am using the php-function strip_tags now to remove the link, but still retain some tags like

<p>, <strong>, <ul> and <li>
Just echo the stt_terms_list() stripped of the a – tag like this:

<?php if(function_exists(’stt_terms_list‘)) echo strip_tags(stt_terms_list(), ‚<p><strong><ul><li>‘) ;?>
The html tags you do not want to remove are in this sample: <p><strong><ul><li>
____________________
you find me on Google+, Twitter and Facebook

(von: Joern)

Hier noch 1 weitere Ergebnisse dieses Threads:

Re: Display SEO SearchTerms Tagging 2 differently on templates :: Reply by testonly

25. Aug. 2012 (von: testonly)

I have been used this SEO SearchTerms Tagging 2 plugin in my website. Weiterlesen →

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: