Advertisement
shakil97bd

All Shortcode Element

Aug 18th, 2014
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. ********************Shortcode Element*****************
  2.  
  3. '.get_the_title().' //For dynamic title
  4. '.get_the_content().' //For dynamic content
  5. '.get_permalink().' //For post link
  6. '.get_the_time().' //For post time
  7. '.get_the_date().' //For post date
  8. '.get_the_author().' //For post author
  9.  
  10. '.get_author_posts_url( get_the_author_meta( 'ID' ) ).' //For author post link
  11.  
  12.  
  13.  
  14. //For Featured images support>>>>>>>>>>>>>
  15.  
  16. $blog_images = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'blog_thumb' );
  17.  
  18. Use featured images: '.$blog_images[0].' // [0] is must use in shortcode need
  19.  
  20. //For custom fields support>>>>>>>>>>>>>>>
  21.  
  22. $service_icon = get_post_meta($idd, 'icon_service', true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement