Voici de quoi afficher dans votre thème à l’emplacement que vous aurez choisi, une page ou une actualité sur wordpress.
<?php $post_id =METTRE ICI ID DE VOTRE PAGE OU ACTUALITÉ; $queried_post = get_post($post_id); $content = $queried_post->post_content; ?> <h1><?php the_title(); ?></h1> <p><?php echo $content; ?></p>
——
Autre possibilité : cela si vous voulez faire apparaitre d’autres pages sur la page d’accueil de wordpress
<?php $id = METTRE ICI ID DE VOTRE PAGE OU ACTUALITÉ; $page = get_post($id); $title = $page->post_title; $date = $page->post_date; $extrait = $page->post_excerpt; $contenu = $page->post_content; $contenu = apply_filters('the_content', $contenu); $contenu = str_replace(']]>', ']]>', $contenu); ?> <!--Pour l'affichage --> <?php echo "<h1>$title</h1><br><p>$contenu</p><br><p>$date</p><br><strong>$extrait</strong>"; ?>