Skip to content

Instantly share code, notes, and snippets.

@mustafix
Last active December 4, 2016 15:58
Show Gist options
  • Save mustafix/ede1ce0122d7a76ef0eb8304674ef6b7 to your computer and use it in GitHub Desktop.
Save mustafix/ede1ce0122d7a76ef0eb8304674ef6b7 to your computer and use it in GitHub Desktop.
<?php
//----------------------------------------------------------
'.get_the_title().'
'.get_the_content().'
'.get_the_excerpt().'
'.get_the_author().' // author এর নাম আনার জন্য
'.get_author_posts_url(get_the_author_meta('ID')).' // author এর নাম এর সাতে লিঙ্ক আনার জন্য
'.get_avatar(get_the_author_meta('ID'), 60).' // avata থেকে user এর ছবি আনার জন্য
'.get_the_date().'
'.get_permalink().'
'.do_shortcode( get_the_title() ).'
'.do_shortcode( get_the_content() ).'
'.do_shortcode($content).'
'.do_shortcode('[t_thumb category="'.$category.'"]').'
//----------------------------------------------------------
$protfolio_thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'protfolio-thumb' );
'.$protfolio_thumb[0].'
$variable=get_the_post_thumbnail($post->ID, 'variable', true);
//custom field ব্যবহার করার জন্য
$idd = get_the_ID();
$variable = get_post_meta($idd, 'variable', true);
<i>fa-fa- '.$variable.' ?></i>
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment