Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ********************* Wordpress theme development Very Essential Code *******************
- <?php the_title(); ?> //For post title
- <?php the_content(); ?> //For post content(for full content)
- <?php echo excerpt(55); ?> //For post content(excerpt content)
- <?php the_permalink(); ?> //For post link
- <?php the_author_posts_link(); ?> //For author name (with author all post link)
- <?php the_author(); ?> //For author name only
- <?php the_time('M d, Y') ?> //For post date/time
- <?php the_category(', '); ?> //For post category
- <?php comments_popup_link(); ?> //For comments numbers and link
- <?php echo esc_url( home_url( '/' ) ); ?> //For home url
- <?php echo get_avatar( get_the_author_email(), '20' ); ?> //For author Avatar
- <?php the_post_thumbnail('post-image', array('class' => 'post_thumb_img')); ?> //For post featured Image
- Post edite link from font-end
- ====================================================
- Default Usage
- ==============
- <?php edit_post_link(); ?>
- Usage with markup
- ===================
- <?php edit_post_link( __( 'Edit', 'zippy' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement