| |||||||
This is a discussion on PHP WordPress within the Website Discussion forums, part of the Websites category; Does anyone know what the PHP Function to insert the page name (WordPress) So I basically want to take the ...
![]() |
| | Thread Tools |
| | #1 |
| iPaidNothing Join Date: Sep 2010 Location: London, UK
Posts: 1,092
![]() | PHP WordPressDoes anyone know what the PHP Function to insert the page name (WordPress) So I basically want to take the page name(variable) and insert it in to a sub title....if that makes sense :S +Rep to anyone who helps! Edit: Found it! Code: <?php
echo $post->post_title;
?>
__________________ Last edited by alexjames; 21-06-11 at 06:17 PM.. |
|
| | #2 |
| iPaidNothing Join Date: Sep 2010 Location: London, UK
Posts: 1,092
![]() | Okay. Sorry to DP, but... Does anyone know how to put a variable (in this case the page name) in to another variable(a plugin) This is what I have at the moment: Code: <?php if ( function_exists( 'wikibox_summary' ) ) wikibox_summary( "<?php
echo $post->post_title;
?>" ); ?>
__________________ |
|
![]() |
| Thread Tools | |
| |