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 | |
function corlate_theme_custom_post_type() { | |
$labels = array( | |
'name' => _x( 'Sliders', 'Post Type General Name', 'corlate' ), | |
'singular_name' => _x( 'Slider', 'Post Type Singular Name', 'corlate' ), | |
'menu_name' => __( 'Slider', 'corlate' ), | |
'name_admin_bar' => __( 'Slider', 'corlate' ), | |
'archives' => __( 'Item Archives', 'corlate' ), |
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
custom post order system: | |
1. support in custom post support = page-attributes | |
2. add it in post query $args = array( 'post_type' => 'promotion', 'posts_per_page' => 6,'orderby' =>'menu_order','order' =>'ASC' ); |
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 | |
global $post; | |
$args = array( 'posts_per_page' => 6, 'post_type'=> 'protfolio' ); | |
$protfolio = get_posts( $args ); | |
foreach( $protfolio as $post ) : setup_postdata($post); ?> | |
<?php | |
$protfolio_link= get_post_meta($post->ID, 'protfolio_link', true); | |
?> |
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 | |
function post_list_shortcode($atts){ | |
extract( shortcode_atts( array( | |
'count' => '', | |
), $atts) ); | |
$q = new WP_Query( | |
array('posts_per_page' => $count, 'post_type' => 'posttype', 'orderby' => 'menu_order','order' => 'ASC') | |
); |
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
/********************************************************** | |
function.php add below the code | |
************************************* | |
function posts_order() | |
{ | |
add_post_type_support( 'post', 'page-attributes' ); | |
}**/ | |
add_action( 'admin_init', 'posts_order' ); |
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
<link rel='stylesheet' href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/> | |
<link rel='stylesheet' href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
<style> | |
fieldset { | |
float:right; | |
z-index: 99999; | |
border: 1px solid #e2e2e2; |
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
<title><?php | |
/* | |
* Print the <title> tag based on what is being viewed. | |
*/ | |
global $page, $paged; | |
wp_title( '|', true, 'right' ); | |
// Add the blog name. | |
bloginfo( 'name' ); |
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
চলুন জেনে নেই কিছু ওয়েব ডিজাইন ও ডেভেলপমেন্ট শেখার ওয়েবসাইটের লিংকঃ | |
1. https://codex.wordpress.org/ | |
2. http://wpbeginner.com/ | |
3. http://wpsitecare.com/ | |
4. https://learn.wordpress.com/ | |
5. http://premium.wpmudev.org/blog/learn-wordpress-in-a-week/ | |
6. https://siteground.com/ | |
7. https://layerthemes.com/ | |
8. https://wp101.com/ |
OlderNewer