Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // admin bar anar jonno header ses howar age likte hoi
- <? wp_head(); ?>
- // admin bar anar jonno body ses howar age likte hoi
- <?php wp_footer(); ?>
- // utf-8 dynamic korar system
- <?php bloginfo("charset"); ?>
- // title dynamic korar system
- <?php bloginfo("name"); ?>
- // Page er title show koranor jonno
- <?php wp_title(); ?>
- // title dynamic korar system
- <?php bloginfo("description"); ?>
- // image link dynamic
- <?php echo esc_url(get_template_directory_uri()); ?>
- ======================================================
- // Menu options dynamic
- <?php
- if(function_exists("wp_nav_menu")){
- wp_nav_menu(array(
- "theme_location" => "mainmenu",
- "fallback_cb" => "prevrat_default_menu",
- 'container' => '',
- "menu_class" => "nav navbar-nav",
- "menu_id" => "nav",
- "link_before" => "<span>",
- "link_after" => "</span>"
- ));
- }
- ?>
- // body te background change option korar system
- <?php body_class(); ?>
- //header image ta jei div e oi div e style korte hobe
- background-image:url(<?php header_image(); ?>);
- =============================================================================================
- /* Post dynamic korar system */
- <?php if(have_posts()) : ?>
- <?php while(have_posts()) : the_post(); ?>
- /* post gula sob-somoi article tag er moddhe rakben ei ta while lup er vitor hoite hobe */
- <article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
- <?php the_title(); ?>
- /* post image anar system */
- <?php the_post_thumbnail(array('class' => ' rocky')); ?>
- /* content short korar jonno readmore options 1 */
- <?php echo readmore(get_the_content(), 15); ?>
- /* content short korar jonno readmore options 2 */
- <?php readmore(15); ?>
- /* wordpress default option koto gula word show korbe select korte parben 3 */
- <?php the_excerpt(); ?>
- /* Date Time Author Name and Category anar system */
- <p>Date: <?php the_time("D - F - Y || g : i a"); ?></p>
- <p>Posted By: <?php the_author(); ?></p>
- <p>Category: <?php the_category(); ?></p>
- <p><?php the_tags(); ?></p>
- /* comments korar system */
- <?php comments_popup_link("kono comment nai", "akta comment ace", "% ta comment ace", "amitumi", "comment korte demu na"); ?>
- /* eita ses hobe while lup ses howar age */
- </article>
- <?php endwhile; ?>
- <?php endif; ?>
- ------------------------------------------------
- /* page post edit korar system */
- <?php edit_post_link(); ?>
- /* jeikhane register post type and taxonomy show korbe oi khane code ta detay hobe */
- <?php while($sliders->have_posts()) : $sliders->the_post(); ?>
- <h1><?php the_title(); ?></h1>
- <?php the_post_thumbnail(); ?>
- <?php the_content(); ?>
- Category:
- <?php
- $category = get_the_terms(get_the_ID(), "slider-category");
- foreach($category as $categorys){
- echo $categorys->name.", ";
- }
- ?>
- <br />
- Tags:
- <?php
- $tag = get_the_terms(get_the_ID(), "slider-tags");
- foreach($tag as $tags){
- echo $tags->name.", ";
- }
- ?>
- <?php endwhile; ?>
- -------------------------------
- /* slider show koranor jonno code */
- <?php
- $sliders = new WP_Query(array(
- "post_type" => "slide"
- ));
- ?>
- <?php while($sliders->have_posts()) : $sliders->the_post(); ?>
- {image : '<?php $imagelink = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "full"); echo $imagelink[0]; ?>'},
- <?php endwhile; ?>
- -----------------------------------------
- /* Content short way 2 */
- <?php wp_trim_words(get_the_content(), 2, read-more-option); ?>
- /* Content short way 3 */
- <?php the_excerpt(); ?>
- /* Page subtitle dynamic */
- <?php echo get_post_meta($post->ID, "eita-id-detay-hobe", true); ?>
Add Comment
Please, Sign In to add comment