This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*DEMO*/ | |
<div id="tab"> | |
<ul class="nav nav-tabs" role="tablist"> | |
<?php $loop = new WP_Query( array( 'post_type' => 'candidates', 'posts_per_page' => -1 ) ); ?> | |
<?php | |
$counter = 0; | |
while ( $loop->have_posts() ) : $loop->the_post(); | |
$counter++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- id change --> | |
<div id="fawesome-carousel" class="carousel slide" data-ride="carousel"> | |
<ol class="carousel-indicators"> | |
<li data-target="#fawesome-carousel" data-slide-to="0" class="active"></li> | |
<li data-target="#fawesome-carousel" data-slide-to="1"></li> | |
</ol> | |
<div class="carousel-inner" role="listbox"> | |
<div class="item active"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WP Theme Development-1 (Create PHP Files) | |
header.php | |
================================== | |
< ?php bloginfo('name'); ?> = ব্লগের নাম আনার জন্য | |
< ?php echo get_template_directory_uri(); ?> = ডাইনামিক থিম ডাইরেক্টরী | |
< ?php bloginfo('stylesheet_url'); ?> = ডাইনামিক স্টাইল শীট | |
< ?php wp_head(); ?> = হেডারের ক্রীপ্ট পাওয়ার জন্য | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//ata functions.php te dite hobe | |
Step# 01: Register Custom Post | |
****************************** | |
# Register Custom Post | |
function wp_tutorials_post() { | |
register_post_type( 'cluster-portfolio', | |
array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Provide an example of an "if – elseif - else" control structure that tests if $day is ‘Monday.’ | |
If so, display ‘Today is Monday.’ Repeat the test of each weekday, displaying ‘Today is (name of the week day), | |
’ otherwise display “It is the weekend.”*/ | |
$dayname = 'Monday'; | |
if($dayname = 'Monday') : | |
echo 'Today is Monday.'; | |
elseif() : | |
echo 'Today is '; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Upload Button Remove | |
function redux_slides_upload_button_remove(){ ?> | |
<style type="text/css"> | |
.button.media_upload_button{display:none;} | |
#about_img-media.button.media_upload_button{display:inline-block;} | |
</style> | |
<?php | |
} | |
add_action('admin_head' , 'redux_slides_upload_button_remove'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( is_front_page() ) : | |
get_header( 'home' ); | |
elseif ( is_page( 'About' ) ) : | |
get_header( 'about' ); | |
else: | |
get_header(); | |
endif; |
NewerOlder