Use this code to show the content of a post or a page:
<?php the_content() ?>
Use this code to show the title of a post or a page:
<?php the_title() ?>
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 🙂
Related Posts:
- How to get WordPress Time Zone setting?
- how to get page id of a page using page slug
- How to set and use global variables? Or why not to use them at all
- How to stop form resubmission on page refresh
- What is in media-template.php, and how does it work?
- Create Image Uploader for Widget
- Displaying a variable stored in functions.php inside widget
- How to get the ID of an item in an audio playlist?
- Add footer.php to WordPress child theme
- Passing a shortcode attribute to a sub-function
- how to display active, upcoming and past event with featured listing with pagination
- JS completely stopped loading but Files are found
- Insert post without actions/hooks
- Import 10,000 Users into WordPress WITH a specific ID for each user
- Restrict WordPress File Type Uploads by User Type
- How Can I Call Up The Author’s Name on a Post
- phpMyAdmin displays error when importing database
- Setting up 2 SMTP accounts: 1 for wordpress and 1 for woocommerce
- Automatically remove a canceled order in Woocommerce
- How to pass arguments to add_action() or retrieve return value of called function?
- Displaying the last post on static homepage
- Using foreach loop breaks
- Get WordPress Category ID from a URL string
- How to remove the cufon script from Dzonia Lite theme [closed]
- WordPress plugin for nicer looking slugs? Have multiple pages named the same but they get different slugs
- Showing a different gallery in a seperate post
- How to put “Read more” link in Custom Excerpt inside p tag?
- WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?
- Remove metabox from WordPress menu editor page?
- Seach custom post type posts only by meta fields?
- Ajax request returns ‘Array’. How to output the actual results?
- subdirectory index.php is not working
- My php header() function is not working [closed]
- Form Security: nonce vs. jQuery
- meaning of (array)function()
- Disable plugin function to use my own
- Normal PHP array for exclude section of WordPress query?
- Buddypress update user avatar image via REST
- Accessing $post after PHP is executed
- Using Argument from Function to Re-Direct Visitor (WordPress)
- email alert for product availability
- How to use the wpsnonce clone post link?
- change the default order of posts only for specific categories
- Array to string conversion error in PHP 7.2 when returning user role as class
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- How can I get “Previous” and “Next” to show in the navigation besides the links?
- Is it possible to add a custom page to a free WordPress site? [closed]
- Advanced Custom Fields [closed]
- Simple php in wordpress widget [closed]
- Assistance with elseif [closed]
- Link to page with posts of specific type
- Order a WP_Query by meta value where the value is an array
- How to use functions [closed]
- Splitting the_content() by size?
- with PHP within splits the link
- Conditionally load class in the comment section of the post page
- Saving a post ID to use in a form elsewhere on website
- Trying to change image funtion from enlarge image to redirect to amazon website
- Manually Remove and Change WordPress Page/Post Title
- Using theme options to change a border-radius value
- Updated to PHP 8.0 and WordPress site not working
- Applying css in functions.php
- Add more user roles to a PHP logout redirect function [closed]
- can’t load .po file in functions.php
- Create shortcode for metabox gallery
- Admin-ajax.php 404 error
- Change the “Show All” button in a WordPress Portfolio Filter
- WooCommerce – template_redirect if is_checkout AND order has been paid?
- Display attached images of a page or post that are insetred using gallery
- overwrite wordpress gallery with custom gallery shortcode
- Upgrade to PHP7.3 and Changing Apache from Prefork to Event Breaks WordPress
- ajaxurl usage for a custom function
- Hot to edit WooCOmmerce dashboard?
- Open/closed function [closed]
- Add wp posts to cutom masonry grid
- dynamically change content of div with php
- Custom WordPress Core upgrade through wp-cli
- (Xdebug Profiler) Why are there two cachegrind files generated for one page?
- add a value to an external link query in searchform
- Showing the project type in HREF
- Adding theme strings to .PO file
- If Month=Particular month display content [closed]
- How to exclude post from being queried based on custom meta value
- Name Input from widget displays Sidebar name instead of saved data
- WordPress – show number of comments for each post in widget
- WP multisite network plugin fails to see classes loaded with spl autoload
- WP_Nav Highlight Parent Issue
- What’s the .php file which generates the Custom Background page in the admin panel?
- What is this mark for “? function()” [closed]
- Change an option string to a function [closed]
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- Warning: Attempt to read property “term_id” on int – Woocommerce
- Headers already sent error with get_template_part in REST API call
- How to fix wordpress after update to php 8.1?
- How to translate the blog date in the Avada theme [closed]
- Can php warnings cause an Internal Server Error?
- Set post to draft if matching word is found in the post
- Edit Error Page style
- PHP $_SESSION array – only showing current index
- How can I use AJAX in child theme template?