Je souhaiterais avec mon code :
Si on est sur la page d'accueil, on affiche un paragraphe en "h2", sinon en h1.
L'identification de la page d'accueil ne pose pas problème. Là où je n'y arrive pas, c'est à la concaténation des fonctions Wordpress dans mon code HTML. J'ai du mal avec les guillemets et concaténation. Je vous mets le code tel quel :
<?
$url=$_SERVER["REQUEST_URI"];
$urlhompage="/";
if ($url==$urlhompage)
echo ' <h2 class="entry-title full-title"><a href="<?php the_permalink() ?>" title="Permanent link to <?php the_title_attribute() ?>" rel="bookmark" rev="post-<?php the_ID(); ?>"><?php the_title() ?></a></h2> ';
else
echo ' <h1 class="entry-title full-title"><a href="<?php the_permalink() ?>" title="Permanent link to <?php the_title_attribute() ?>" rel="bookmark" rev="post-<?php the_ID(); ?>"><?php the_title() ?></a></h1> ';
?>
Merci beaucoup !!!