Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ********************Shortcode Element*****************
- '.get_the_title().' //For dynamic title
- '.get_the_content().' //For dynamic content
- '.get_permalink().' //For post link
- '.get_the_time().' //For post time
- '.get_the_date().' //For post date
- '.get_the_author().' //For post author
- '.get_author_posts_url( get_the_author_meta( 'ID' ) ).' //For author post link
- //For Featured images support>>>>>>>>>>>>>
- $blog_images = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'blog_thumb' );
- Use featured images: '.$blog_images[0].' // [0] is must use in shortcode need
- //For custom fields support>>>>>>>>>>>>>>>
- $service_icon = get_post_meta($idd, 'icon_service', true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement