I making my first Wordpress template. I used this code to add only the h1 to the page.
<?php $title = get_the_title($post->ID); echo $title; ?>
But is there a code. That only add the post to the page?
|
I making my first Wordpress template. I used this code to add only the h1 to the page.
But is there a code. That only add the post to the page? |
|||
|
|
|
Use this code to show the content of a post or a page:
Use this code to show the title of a post or a page:
This page can be useful if you are new to designing WP themes: http://codex.wordpress.org/Site_Design_and_Layout Here is a list of the template-tags you can use in your template to show info like date, nvaigation, comment-field, comment-form, title, excerpt, content etc: http://codex.wordpress.org/Template_Tags good luck :) |
|||
|
|
|
When you say 'only add the post to the page' I'm assuming you are looking for I suggest that you read the Wordpress documentation on developing your own templates - HERE and more specifically - HERE |
|||
|
|