Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WP Theme Development-1 (Create PHP Files)
- By Rasel Ahmed in আর আর ফাউন্ডেশনন্ডেশন ( অফিফিসিয়াল গ্রুপ )
- ==================================
- < ?php bloginfo('name'); ?> = ব্লগেশনগের নাম আনার জনয
- < ?php echo get_template_directory_uri(); ?> = ডাইনািমক িথিম ডাইেশনরক্টরী
- < ?php bloginfo('stylesheet_url'); ?> = ডাইনািমক স্টাইল শীট
- < ?php wp_head(); ?> = েহেডােশনরর স্ক্রীপ্ট পাওয়ার জনয
- index.php
- ==================================
- < ?php get_header(); ?> = header.php ফাইল কল করার জনয
- < ?php get_footer(); ?> = footer.php ফাইল কল করার জনয
- < ?php get_sidebar(); ?> = sidebar.php ফাইল কল করার জনয
- < ?php get_template_part('file_name'); ?> = েযে েকান ফাইল কল করার জনয
- functions.php
- ==================================
- সাইডবার েরিজিস্ট্রার করার জিন্য্
- function rasel_widget_areas() {
- register_sidebar( array(
- 'name' => __( 'Left Menu', 'rasel' ),
- 'id' => 'left_sidebar',
- 'before_widget' => '
- ',
- 'after_widget' => '
- ',
- 'before_title' => '
- ',
- 'after_title' => '',
- ) );
- }
- add_action('widgets_init', 'rasel_widget_areas');
- Sidebar.php
- ===================================
- সিাইডবার কল করার জনয
- = এখােশনন left_sidebar হেল সিাইড বােশনরর আইিড।
- েসিাসির্স িথিম ডাউন্ডনেশনলাড: http://rrfoundation.net/example/wp_theme_development/part_one_source.zip
- িটউন্ডেশনটািরয়াল িলংক: http://rrfoundation.net/318
- WP Theme Development-2 (Blog Page Query)
- By Rasel Ahmed in আর আর ফাউন্ডেশনন্ডেশন ( অফিফিসিয়াল গ্রুপ )
- Post Query in index.php
- =====================================
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <!-- Your Post Query here -->
- <?php endwhile; ?>
- <?php endif; ?>
- Pagination in index.php
- =====================================
- <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older
- posts') ); ?></div><div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span
- class="meta-nav">→</span>') ); ?></div>
- Post Information Query in index.php
- =====================================
- <?php the_title(); ?> = েপােশনস্টর িশেশনরানাম আনার জনয
- <?php the_permalink(); ?> = েপােশনস্টর িলংক আনার জনয
- <?php the_time('M d, Y') ?> = েপােশনস্টর সিময় আনার জনয
- <?php the_excerpt(); ?> = েপােশনস্টর সিারাংশ আনার জনয
- <?php the_content(); ?> = েপােশনস্টর পুরেশনরা অফংশ আনার জনয
- <?php the_category(', '); ?> = েপােশনস্টর িবভাগে আনার জনয
- <?php comments_popup_link('No Comment', '1 Comment', '% Comments'); ?> = েপােশনস্ট কেশনমন্ট সিংখযা ও তার
- িলংক আনার জনয
- িটউন্ডেশনটািরয়াল িলংক: http://rrfoundation.net/322
- েসিাসির্স িথিম ডাউন্ডনেশনলাড: http://rrfoundation.net/example/wp_theme_development/part_two_source.zip
- WP Theme Development-3 (Single Post & Archive Page)
- By Rasel Ahmed in আর আর ফাউন্ডেশনন্ডেশন ( অফিফিসিয়াল গ্রুপ )
- single.php
- <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
- <h2><?php the_title(); ?></h2>
- <?php the_content(); ?>
- <?php comments_template( '', true ); ?>
- <?php endwhile; ?>
- <?php else : ?>
- <h3><?php _e('404 Error: Not Found'); ?></h3>
- <?php endif; ?>
- archive.php
- for Archive & Archive Post List
- <h1>
- <?php if (have_posts()) : ?>
- <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
- <?php /* If this is a category archive */ if (is_category()) { ?>
- <?php _e('Archive for the'); ?> '<?php echo single_cat_title(); ?>' <?php _e('Category'); ?>
- <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
- <?php _e('Archive for the'); ?> <?php single_tag_title(); ?> Tag
- <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
- <?php _e('Archive for'); ?> <?php the_time('F jS, Y'); ?>
- <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
- <?php _e('Archive for'); ?> <?php the_time('F, Y'); ?>
- <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
- <?php _e('Archive for'); ?> <?php the_time('Y'); ?>
- <?php /* If this is a search */ } elseif (is_search()) { ?>
- <?php _e('Search Results'); ?>
- <?php /* If this is an author archive */ } elseif (is_author()) { ?>
- <?php _e('Author Archive'); ?>
- <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !
- empty($_GET['paged'])) { ?>
- <?php _e('Blog Archives'); ?>
- <?php } ?>
- </h1>
- For archive post query
- <?php get_template_part( 'post-excerpt' ); // Post Excerpt (post-excerpt.php) ?>
- If no post in archive or 404
- <?php else : ?>
- <h3><?php _e('404 Error: Not Found'); ?></h3>
- <?php endif; ?>
- 404.php
- <h2>404 Error: Not Found</h2>
- <p>Sorry, but the page you are trying to reach is unavailable or does not exist.</p>
- িটউন্ডেশনটািরয়াল িলংক: http://rrfoundation.net/337
- েসিাসির্স ফাইল ডাউন্ডনেশনলাড: http://sdrv.ms/T4THqZ
- WP Theme Development-4 (Stylize Comments & Featured
- Image)
- By Rasel Ahmed in আর আর ফাউন্ডেশনন্ডেশন ( অফিফিসিয়াল গ্রুপ )
- Adding Comment CSS
- Pastebin Link for CSS: http://pastebin.com/VaxfkmMe
- ------------------------------------------------------------------
- /* ===================== comments ===================== */
- .comments {margin: 10px 0;}
- .comments h3 {margin:50px 0 30px 0;font-size:24px;}
- ol.commentlist { list-style:none; margin:0 0 1em; padding:0; text-indent:0; }
- ol.commentlist li { }
- ol.commentlist li.alt { }
- ol.commentlist li.bypostauthor {}
- ol.commentlist li.byuser {}
- ol.commentlist li.comment-author-admin {}
- ol.commentlist li.comment { border-bottom: 1px solid #ddd; padding:1em; margin-bottom: 10px; }
- ol.commentlist li div.comment-author {}
- ol.commentlist li div.vcard { font-size:20px;}
- ol.commentlist li div.vcard cite.fn { font-style:normal; }
- ol.commentlist li div.vcard cite.fn a.url {}
- ol.commentlist li div.vcard img.avatar {float:left; margin:0 1em 1em 0; }
- ol.commentlist li div.vcard img.avatar-32 {}
- ol.commentlist li div.vcard img.photo {}
- ol.commentlist li div.vcard span.says {}
- ol.commentlist li div.commentmetadata {}
- ol.commentlist li div.comment-meta { font-size:9px; margin-bottom: 10px;}
- ol.commentlist li div.comment-meta a { color: #aaa; }
- ol.commentlist li p { margin: 0; }
- ol.commentlist li ul { list-style:square; margin:0 0 1em 2em; }
- ol.commentlist li div.reply { font-size:11px; }
- ol.commentlist li div.reply a { font-weight:bold; }
- ol.commentlist li ul.children { list-style:none; margin:1em 0 0; text-indent:0; }
- ol.commentlist li ul.children li {}
- ol.commentlist li ul.children li.alt {}
- ol.commentlist li ul.children li.bypostauthor {}
- ol.commentlist li ul.children li.byuser {}
- ol.commentlist li ul.children li.comment {}
- ol.commentlist li ul.children li.comment-author-admin {}
- ol.commentlist li ul.children li.depth-2 { margin:0 0 .25em .25em; }
- ol.commentlist li ul.children li.depth-3 { margin:0 0 .25em .25em; }
- ol.commentlist li ul.children li.depth-4 { margin:0 0 .25em .25em; }
- ol.commentlist li ul.children li.depth-5 {}
- ol.commentlist li ul.children li.odd {}
- ol.commentlist li.even { background:#fff; }
- ol.commentlist li.odd { background:#f6f6f6; }
- ol.commentlist li.parent { }
- ol.commentlist li.pingback { margin: 0 0 10px; padding: 1em; border: 1px dashed #ccc; }
- ol.commentlist li.thread-alt { }
- ol.commentlist li.thread-even { }
- ol.commentlist li.thread-odd {}
- /* ===================== comment form ===================== */
- #respond {position: relative;}
- #respond input[type="text"],#respond textarea {border:1px solid #ddd;padding:10px}
- #respond input[type="text"] {padding:7px;width:300px}
- #respond .comment-form-author,
- #respond .comment-form-email,
- #respond .comment-form-url,
- #respond .comment-form-comment { position: relative; }
- #respond .comment-form-author label,
- #respond .comment-form-email label,
- #respond .comment-form-url label,
- #respond .comment-form-comment label { background: #eee; color: #555; display: inline-block; left:
- 4px; min-width: 60px; padding: 4px 10px; position: relative; top: 40px; z-index: 1; }
- #respond input[type="text"]:focus,
- #respond textarea:focus { text-indent: 0; z-index: 1; }
- #respond textarea { resize: vertical; width: 95%; }
- #respond .comment-form-author .required,
- #respond .comment-form-email .required { color: #bd3500; font-size: 22px; font-weight: bold; left:
- 75%; position: absolute; top: 45px; z-index: 1; }
- #respond .comment-notes,
- #respond .logged-in-as { font-size: 13px; }
- #respond p { margin: 10px 0; }
- #respond .form-submit { float: right; margin: -20px 0 10px; }
- #respond input#submit { background: #454545; border: none; -moz-border-radius: 3px; border-radius:
- 3px; -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); -moz-box-shadow: 0px 1px 2px
- rgba(0,0,0,0.3); box-shadow: 0px 1px 2px rgba(0,0,0,0.3); color: #eee; cursor: pointer; padding: 5px
- 42px 5px 22px; }
- #respond input#submit:active { background: #86222D; color: #fff; }
- #respond #cancel-comment-reply-link { color: #666; margin-left: 10px; text-decoration: none; }
- #respond .logged-in-as a:hover,
- #respond #cancel-comment-reply-link:hover { text-decoration: underline; }
- .commentlist #respond { margin: 1.625em 0 0; width: auto; }
- #reply-title { color: #373737; font-size: 20px; }
- #cancel-comment-reply-link { color: #888; display: block; position: absolute; right: 1.625em; textdecoration:
- none; text-transform: uppercase; top: 1.1em; }
- #cancel-comment-reply-link:focus,
- #cancel-comment-reply-link:active,
- #cancel-comment-reply-link:hover { color: #ff4b33; }
- #respond label {display: block; float: right; font-size: 16px; line-height: 2.2em; width: 280px;}
- #respond input[type=text] {}
- #respond p { font-size: 12px; }
- p.comment-form-comment { margin: 0; }
- .form-allowed-tags { display: none; }
- .trackback { margin: 0 0 10px; padding: 1em; border: 1px dashed #ccc; }
- -----------------------------------------------------------------------------------------------
- functions.php
- For enable comment
- function comment_scripts(){
- if ( is_singular() ) wp_enqueue_script( 'comment-reply' );
- }
- add_action( 'wp_enqueue_scripts', 'comment_scripts' );
- For enable featured image
- add_theme_support( 'post-thumbnails', array( 'post' ) );
- for enable crop feature
- set_post_thumbnail_size( 200, 200, true );
- add_image_size( 'post-image', 150, 150, true );
- post-loop.php
- Using Featured Image
- <?php the_post_thumbnail('post-image', array('class' => 'post-thumb')); ?>
- Tutorial Link: http://rrfoundation.net/342
- Source Theme Download Link: http://sdrv.ms/T4THqZ
- WP Theme Development-5 (Dynamic Menu & Custom
- Templates)
- By Rasel Ahmed in আর আর ফাউন্ডেশনন্ডেশন ( অফিফিসিয়াল গ্রুপ )
- For Dynamic Menu
- functions.php
- add_action('init', 'wpj_register_menu');
- function wpj_register_menu() {
- if (function_exists('register_nav_menu')) {
- register_nav_menu( 'main-menu', __( 'Main Menu') );
- }
- }
- header.php
- <?php wp_nav_menu( array( 'theme_location' => 'main-menu') ); ?>
- An amazing readmore function
- functions.php
- function excerpt($num) {
- $limit = $num+1;
- $excerpt = explode(' ', get_the_excerpt(), $limit);
- array_pop($excerpt);
- $excerpt = implode(" ",$excerpt)." <a href='" .get_permalink($post->ID) ." ' class='".readmore."'>Read
- More</a>";
- echo $excerpt;
- }
- Usage: <?php echo excerpt('15'); ?>
- Using Custom Templates
- <?php
- /*
- * Template Name: Custom Template Name
- */
- get_header(); ?>
- Tutorial Link: http://rrfoundation.net/351
- Source Theme Download: http://sdrv.ms/T4THqZ
- WP Theme Development-6&7 (Custom Category Post Query &
- Register Custom Post)
- By Rasel Ahmed in আর আর ফাউন্ডেশনন্ডেশন ( অফিফিসিয়াল গ্রুপ )
- Query Post from a specific category
- <?php query_posts('post_type=post&post_status=publish&posts_per_page=10&paged='.
- get_query_var('paged')); ?>
- Register Custom Post
- Pastebin Code Link: http://pastebin.com/Fkgnu2KL
- /* Register Custom Post Types********************************************/
- add_action( 'init', 'create_post_type' );
- function create_post_type() {
- register_post_type( 'testimonial',
- array(
- 'labels' => array(
- 'name' => __( 'Testimonial' ),
- 'singular_name' => __( 'Testimonial' ),
- 'add_new' => __( 'Add New' ),
- 'add_new_item' => __( 'Add New Testimonial' ),
- 'edit_item' => __( 'Edit Testimonial' ),
- 'new_item' => __( 'New Testimonial' ),
- 'view_item' => __( 'View Testimonial' ),
- 'not_found' => __( 'Sorry, we couldn\'t find the Testimonial you
- are looking for.' )
- ),
- 'public' => true,
- 'publicly_queryable' => false,
- 'exclude_from_search' => true,
- 'menu_position' => 14,
- 'has_archive' => false,
- 'hierarchical' => false,
- 'capability_type' => 'page',
- 'rewrite' => array( 'slug' => 'testimonial' ),
- 'supports' => array( 'title', 'editor', 'custom-fields' )
- )
- );
- }
- --------------------------------------------------------------------------------------------------------------
- Query Custom Post List
- <?php query_posts('post_type=testimonial&post_status=publish&posts_per_page=10&paged='.
- get_query_var('paged')); ?>
- Query Custom Post Single
- copy your single.php file & rename single-<custom-post>.php
- <custom-post> = Custom Post Type
- িটউন্ডেশনটািরয়াল িলংক: http://rrfoundation.net/365
- েসিাসির্স িথিম ডাউন্ডনেশনলাড: http://sdrv.ms/T4THqZ
- পবর্স দুই এর
- িটউন্ডেশনটািরয়াল িলংক: http://rrfoundation.net/369
- েসিাসির্স িথিম ডাউন্ডনেশনলাড: http://sdrv.ms/T4THqZ
- Wordpress Theme Development-8 (Custom Field Tips & Tricks-
- 1)
- By Rasel Ahmed in আর আর ফাউন্ডেশনন্ডেশন ( অফিফিসিয়াল গ্রুপ )
- Suppose we use custom field as 'url'
- Display Custom Field Data
- <?php $key="url"; echo get_post_meta($post->ID, $key, true); ?>
- Display custom field if exists
- <?php $image = get_post_meta($post->ID, 'url', true);
- if($image) : ?>
- <img src="<?php echo $image; ?>" alt="" />
- <?php endif; ?>
- Conditional Custom Field
- <?php
- $url = get_post_meta( $post->ID, 'url', true );
- if ( $url ) {
- echo $url;
- } else {
- the_permalink();
- }
- ?>
- িটউন্ডেশনটািরয়াল িলংক: http://rrfoundation.net/373
- েসিাসির্স ফাইল ডাউন্ডনেশনলাড: http://sdrv.ms/T4THqZ
- Wordpress Theme Development-9 (Option Tree)
- By Rasel Ahmed in আর আর ফাউন্ডেশনন্ডেশন ( অফিফিসিয়াল গ্রুপ )
- Download Option Tree: http://wordpress.org/extend/plugins/option-tree/
- Usage
- =======================
- functions.php
- Activate Option Tree
- add_filter( 'ot_show_pages', '__return_false' );
- add_filter( 'ot_show_new_layout', '__return_false' );
- add_filter( 'ot_theme_mode', '__return_true' );
- include_once( 'option-tree/ot-loader.php' );
- include_once( 'includes/theme-options.php' );
- Create Option Tree In the theme
- ================================
- Creating Simple Option Tree In the theme: http://pastebin.com/auGpnWxP
- <?php
- add_action( 'admin_init', 'custom_theme_options', 1 );
- function custom_theme_options() {
- $saved_settings = get_option( 'option_tree_settings', array() );
- $custom_settings = array(
- 'sections' => array(
- array(
- 'id' => 'general',
- 'title' => 'Site Settings'
- )
- ),
- 'settings' => array(
- array(
- 'id' => 'logo_text',
- 'label' => 'Logo Text',
- 'desc' => 'Use H1, H2, H3 tag',
- 'type' => 'textarea',
- 'section' => 'general'
- ),
- array(
- 'id' => 'footer_text',
- 'label' => 'Footer Text',
- 'type' => 'textarea',
- 'section' => 'general'
- )
- )
- );
- if ( $saved_settings !== $custom_settings ) {
- update_option( 'option_tree_settings', $custom_settings );
- }
- }
- ?>
- --------------------------------------------------------------------------------------------------------
- Get Data From Option Tree
- ==========================
- Condtional Data
- <?php if ( function_exists( 'get_option_tree') ) : if( get_option_tree( 'your_tree_id') ) : ?>
- <?php get_option_tree( 'your_tree_id', '', 'true' ); ?>
- <?php else : ?>
- Your Default Data
- <?php endif; endif; ?>
- Simple Data
- <?php get_option_tree( 'facebook', '', 'true' ); ?>
- Tutorial Link: http://rrfoundation.net/391
- পপপপপপপ পপপপপ Post View Count পপপপপ পপপপ পপপপপ পপপপপপপপপপ
- By Hasan Fardous Ruble in আর আর ফাউন্ডেশনন্ডেশন ( অফিফিসিয়াল গ্রুপ ) (Files) · Edit Doc
- অফেশননেশনকই সিাইেশনট প্রশ্ন করেশনছেন িকভােশনব েপাস্ট িভউন্ড কাউন্ডন্ট যেুরক্ত করেশনবন, অফেশননেশনক প্লািগেন বযাবহোর কেশনরও পারেশনছেন না। তাই আপনােশনদের জনয এই
- ডকিট করলাম। িনেশনচের িনেশনদের্সশনা অফনুরযোয়ী েকাডগুলেশনলা আপনার সিাইেশনট বসিান আর েপেশনয় যোন চেমৎকার েপাস্ট িভউন্ড কাউন্ডন্ট।
- আপনার functions.php েত এই েকাডিট যেুরক্ত করুন
- // function to display number of posts.
- getPostViews($postID){ $count_key = 'post_views_count'; $count = get_post_meta($postID,
- $count_key, true); if($count==''){ delete_post_meta($postID, $count_key);
- add_post_meta($postID, $count_key, '0'); return "0 View"; } return $count.' Times';}
- // function to count views.function setPostViews($postID) { $count_key = 'post_views_count';
- $count = get_post_meta($postID, $count_key, true); if($count==''){ $count = 0;
- delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); }else{
- $count++; update_post_meta($postID, $count_key, $count); }}
- আপিন েযেখােশনন েপাস্ট িভউন্ড কাউন্ডন্ট েসিট করেশনত চোন েসিখানকার লুরেশনপ এই েকােশনডর পেশনর এই েকাডিট যেুরক্ত করুন
- আপিন েযেখােশনন েপাস্ট িভউন্ড কাউন্ডন্ট েদেখােশনত চোন
- আপনােশনদের জনয েকাডিট েপস্টিবেশনন ও েশয়ার করলাম http://pastebin.com/w9XmBQKc
- Support featured images on wordpress
- By Rasel Ahmed in আর আর ফাউন্ডেশনন্ডেশন ( অফিফিসিয়াল গ্রুপ )
- Code for featured images:
- add_theme_support( 'post-thumbnails', array( 'post' ) );
- এখােশনন আপিন যেিদে েপেশনজও িফচোর ইেশনমজ িদেেশনত চোন তাহেেশনল page িট যেুরক্ত করেশনত হেেশনব। েযেমন
- add_theme_support( 'post-thumbnails', array( 'post', 'page' ) );
- Different size featured imges
- add_image_size( 'post-image', 450, 150, true );
- এখােশনন প্রথিমিট width ও পেশনররিট height
- How call images:
- শুধুর ইেশনমেশনজর িলংক : <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),
- 'post-image' ); echo $image[0]; ?>
- েনাট: এটা বযবহোর করেশনল শুধুর ইেশনমজ এর িলংক আসিেশনব তাই <img src="এখােশনন উন্ডপেশনরর েকাডটা িদেেশনত হেেশনব" alt=""/>
- ইেশনমজ src অফেশনটােশনমিটক কল: <?php the_post_thumbnail('post-image', array('class' => 'imgthumb')); ?>
- এথিােশনন array িদেেশনয় আলাদো ক্লাসি েনওয়া হেেশনয়েশনছে। এখােশনন post-image িদেেশনয় িনিদের্সষ্ট সিাইেশনজর ইেশনমজ েনওয়া হেেশনচ্ছে েযেটােশনক ফাংশেশনন েদেওয়া
- হেেশনয়িছেল।
- How to add custom header and custom background in
- wordpress theme
- By Raju Ahmed in আর আর ফাউন্ডেশনন্ডেশন ( অফিফিসিয়াল গ্রুপ )
- Hi! i hope that all are fine.Today i want to share how to add custom header and custom background in
- wordpress theme. it is very simple way, i seem that every coder of wordpress theme who is known this
- system. By the way , it is only new coder/programmer. Thanks .
- =======================
- Title: custom background.
- =======================
- head.php
- ..............
- replace the
- tag using bellow the code.
- >
- ===================
- functions.php
- .........................
- this code put within the tag
- $defaults = array(
- 'default-color' => '#000',
- 'default-image' => '',
- 'wp-head-callback' => '_custom_background_cb',
- 'admin-head-callback' => '',
- 'admin-preview-callback' => ''
- );
- add_theme_support( 'custom-background', $defaults );
- ====================
- Title: custom Header/Logo
- ===================
- head.php
- ..........................
- Put this code where you want to upload your logo.
- =================
- functions.php
- ..........................
- this code put within the tag
- $defaults = array(
- 'default-image' => '',
- 'random-default' => true,
- 'width' => 1000,
- 'height' => 200,
- 'flex-height' => true,
- 'flex-width' => true,
- 'default-text-color' => '#000',
- 'header-text' => true,
- 'uploads' => true,
- 'wp-head-callback' => '',
- 'admin-head-callback' => '',
- 'admin-preview-callback' => '',
- );
- add_theme_support( 'custom-header', $defaults );
- ===============
- ওয়ার্ডপর্ডপ্রেস প্রেস িচিটকেস কার্ডপ (আপডেস ডপটক চিলবেস ব)
- By েমা আিরফুরল ইসিলাম সিেশননট in আর আর ফাউন্ডেশনন্ডেশন ( অফিফিসিয়াল গ্রুপ )
- িনেশনয় িনন ওয়াডর্সেশনপ্রেশনসির জনয দেরকাির িচেটেশনকাড
- <?php /*Show post author link */?> <?php the_author(); ?>
- <!-- show post link --> <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent
- Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
- <?php /** show post content */?> <?php the_content(); ?>
- <?php /** Show edit post link */?>
- <?php edit_post_link(); ?>
- <!-- show the next/previous link -->
- <?php next_posts_link( 'Older Entries' ); ?>
- <?php previous_posts_link( 'Newer Entries' ); ?>
- <!-- Comments popup link -->
- <?php comments_popup_link( 'Leave a Comment', '1 Comment', '% Comments' ); ?>
- <!-- Code for show blog name-->
- <?php bloginfo('name'); ?>
- <!-- Discription for blog -->
- <?php bloginfo(’description’); ?>
- <!-- The title of your blog -->
- <?php wp_title(); ?>
- <!-- code for stylesheet linking -->
- <?php bloginfo('stylesheet_url'); ?>
- <!-- Code for pingback url -->
- <?php bloginfo('pingback_url'); ?>
- <!-- Code for theme location -->
- <?php bloginfo('template_url'); ?>
- <!-- Code for Wordpress version -->
- <?php bloginfo('version'); ?>
- <!-- Atom feed link -->
- <?php bloginfo('atom_url'); ?>
- <!-- RSS2 feed link -->
- <?php bloginfo('rss2_url'); ?>
- <!-- url of your website -->
- <?php bloginfo('url'); ?>
- <!-- declairing for html type code -->
- <?php bloginfo('html_type'); ?>
- <!-- Code for Charset Set -->
- <?php bloginfo('charset'); ?>
- <!-- if statemant for post find/search -->
- <?php if(have_posts()) : ?>
- <!-- while statemant -->
- <?php while(have_posts()) : the_post(); ?>
- <!-- End while statemant -->
- <?php endwhile; ?>
- <!-- End if statemant -->
- <?php endif; ?>
- <!-- To get header.php -->
- <?php get_header(); ?>
- <!-- To get sidebar.php -->
- <?php get_sidebar(); ?>
- <!-- To get footer.php -->
- <?php get_footer(); ?>
- <!-- To get time and date -->
- <?php the_time('m-d-y') ?>
- <!-- To get pop-up comment's link -->
- <?php comments_popup_link(); ?>
- <!-- permanent link for you post/page -->
- <?php the_permalink() ?>
- <!-- Show category >>code -->
- <?php the_category(', ') ?>
- <!-- ID for post/page -->
- <?php the_ID(); ?>
- <!-- For post link -->
- <?php edit_post_link(); ?>
- <!-- list for link -->
- <?php get_links_list(); ?>
- <!-- Call for comment template -->
- <?php comments_template(); ?>
- <!-- Site page list -->
- <?php wp_list_pages(); ?>
- <!-- site cstegory list -->
- <?php wp_list_cats(); ?>
- <!-- get default calender -->
- <?php get_calendar(); ?>
- <!-- Get archive -->
- <?php wp_get_archives() ?>
- <!-- Navigation link for post -->
- <?php posts_nav_link(); ?>
- েকাডগুলেশনলা কিপ কেশনর দেয়া কেশনর আপনার Notepad++ এ েসিভ কেশনর রাখুরন।
- Cross browser support
- By Imran Khan in আর আর ফাউন্ডেশনন্ডেশন ( অফিফিসিয়াল গ্রুপ )
- আজ েক একটা েছোট িটপসি িনেশনয় আসিলাম।
- অফেশননক সিময় েদেখা যোয় িসি এসি এসি ৩ এর িকছেুর িকছেুর কাজ ক্রসি ব্রাউন্ডজার এ সিােশনপাটর্স করােশনত িকছেুরটা ঝােশনমলা হেেশনয় যোয়। আজেশনক আিম েদেখাব
- িকভােশনব ক্রসি ব্রাউন্ডজার এর জনয আপনার স্টাইল িসিট েক খুরব সিহেেশনজই মিডফাই করেশনবন।
- ১. http://prefixmycss.com/ এই সিাইট এ যোেশনবন ।
- ২. আপনার পুরেশনরা স্টাইল িসিট েক ১ নম্বর বক্স এ েপস্ট করুন।
- ৩. িপ্রিফক্স বাটন এ িক্লক করুন৪. ৩ নম্বর বক্স েথিেশনক আপনার কািঙ্খিত স্টাইল িশটিট কিপ কেশনর বযবহোর করুন।
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement