João Cândido de Souza Neto wrote:
You made a mistake in your code:
?php the_title(); ?
must be:
?php echo the_title(); ?
Not necessarily: what if you have
function the_title()
{
echo Title;
}
for example...
In response to Sebastiano:
There would be not much point in using
Thanks, it's now much more clear. I thought that html parts outside
php tags were just dumped to output, no matter of if-else statements
and other conditions. I was *definitely* wrong
2009/7/23 Peter Ford p...@justcroft.com:
In response to Sebastiano:
There would be not much point in using
You made a mistake in your code:
?php the_title(); ?
must be:
?php echo the_title(); ?
--
João Cândido de Souza Neto
SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS
Fone: (0XX41) 3033-3636 - JS
www.siens.com.br
Sebastiano Pomata lafayett...@gmail.com escreveu na mensagem
2009/7/22 João Cândido de Souza Neto j...@consultorweb.cnt.br
You made a mistake in your code:
?php the_title(); ?
must be:
?php echo the_title(); ?
?= the_title(); ?
also works.
-Shane
--
João Cândido de Souza Neto
SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS
Fone: (0XX41) 3033-3636
Ted Turner http://www.brainyquote.com/quotes/authors/t/ted_turner.html -
Sports is like a war without the killing.
2009/7/23 Shane Hill shanehil...@gmail.com
2009/7/22 João Cândido de Souza Neto j...@consultorweb.cnt.br
You made a mistake in your code:
?php the_title(); ?
must be:
This is how I'd write this snippet
?php
if ( 'Home' !== ( $title = the_title('','',FALSE)))
{
echo 'h2 class=entry-header',
$title,
'/h2';
}
?
On Wed, Jul 22, 2009 at 6:31 PM, Lenin le...@phpxperts.net wrote:
Ted Turner
João Cândido de Souza Neto wrote:
You made a mistake in your code:
?php the_title(); ?
must be:
?php echo the_title(); ?
I haven't used worpress in a long time, but the the_title() function
might echo the title unless you pass the FALSE parameter, in which case
it just returns it.
--
7 matches
Mail list logo