Jump to content


Photo
- - - - -

How Can I Make Simple Tag Work On Pagelines

tags simpletag

Best Answer Simon_P , 14 December 2012 - 02:07 PM

 

 

 
add_action( 'pagelines_loop_after_post_content', create_function( '', "if( is_page() ) the_tags('<em style=\'color:#AAAAAA;\'>Tags:</em> ', ', ', '');" ) );
Go to the full post


  • Please log in to reply
4 replies to this topic

#1 joaoreis

joaoreis

    Advanced Member

  • Members
  • 30 posts
  • LocationPorto alegre
  • Framework Version:v2.3.8
  • Country: Country Flag

Posted 13 December 2012 - 06:29 PM

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!



#2 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 13 December 2012 - 07:47 PM

Add to pagelines-customize/functions.php:

 

 

Please Login or Register to see this Hidden Content


  • joaoreis likes this

#3 joaoreis

joaoreis

    Advanced Member

  • Members
  • 30 posts
  • LocationPorto alegre
  • Framework Version:v2.3.8
  • Country: Country Flag

Posted 14 December 2012 - 01:16 PM

 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:

Please Login or Register to see this Hidden Content

 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!



#4 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 14 December 2012 - 02:07 PM   Best Answer

Please Login or Register to see this Hidden Content

 

Please Login or Register to see this Hidden Content


  • joaoreis likes this

#5 joaoreis

joaoreis

    Advanced Member

  • Members
  • 30 posts
  • LocationPorto alegre
  • Framework Version:v2.3.8
  • Country: Country Flag

Posted 14 December 2012 - 03:38 PM

That works! Thanks for your help!







Also tagged with one or more of these keywords: tags, simpletag