WordPress PHP Codes

Meta Tags Codes

These are php codes you can insert in your post page templates to show Meta information

<?php the_author_posts_link(); ?>  – This will display Author’s link

<?php the_time('F jS, Y'); ?> – Adds the published time of the post

<?php the_category(', '); ?> – Shows category of the post

<?php edit_post_link(__('{Edit}'), ''); ?>

<?php the_modified_time('Y-m-d'); ?>

Leave a comment

Your email address will not be published. Required fields are marked *

eleven + five =