Archived

This topic is now archived and is closed to further replies.

  • 0

How Can I Make Simple Tag Work On Pagelines


Question

Posted · Report post

Hello! Guys,

 

 I'm trying to make the plugin Simple tags work, which make appear tags for pages. I found that i had to put a specific code to make it work " Tags: <?php the_tags(' ', ', ', ''); ?> ". I would like to put the tags between the sharebar and the page content and i don't know how to do it.

 

 Do you have any idea on how can i do this? hooks? what php page should i put this code in?

 

 Or is there a way i can do it using some of the pageline settings?

 

Thanks in advance!

Share this post


Link to post
Share on other sites

4 answers to this question

Posted · Report post


 

add_action( 'pagelines_loop_after_post_content', create_function( '', "if( is_page() ) the_tags('<em style='color:#AAAAAA;'>Tags:</em> ', ', ', '');" ) );
1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

 Simon, that works!!

 

 The only thing i want to do now is add the word "Tags:" with a different color in the same line of the tags.

 

 Like this: Tags: test, mytag, etc,

 

 I've tried to add this:

add_action( 'pagelines_loop_after_post_content', create_function( '', "if( is_page() ) the_tags('<em style='color:#AAAAAA;'>Tags:</em> ', ', ', '');" ) );

 But this way doesn't work.

 

 And this way works but the tag line is bellow the word tag:

 

 function pagetags(){

echo "<div style='color:#AAAAAA;'>Tags: </div>";

}

 add_action( 'pagelines_loop_after_post_content', 'pagetags' );

 add_action( 'pagelines_loop_after_post_content', create_function( '', "if( is_page() ) the_tags(' ', ', ', '');" ) );
 

 Do you think is possible to do this?

 

 If not, no problem i'm gonna use the way it is.

 

Thanks a lot!

Share this post


Link to post
Share on other sites

Posted · Report post

That works! Thanks for your help!

Share this post


Link to post
Share on other sites

Posted · Report post

Add to pagelines-customize/functions.php:

 

 

add_action( 'pagelines_loop_after_post_content', create_function( '', "if( is_page() ) the_tags(' ', ', ', '');" ) );
1 person likes this

Share this post


Link to post
Share on other sites