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 language_attributes(); ?> ->this code for add language add in html. | |
#<?php bloginfo( 'charset' ); ?> ->this code use for meta charset utf. | |
#please search google for header title dynamic , and also know separetor and left right =><?php wp_title( '|', true, 'right' ); ?>. | |
#css call for theme and search wp enqueue style or your mind what do. | |
#how to properly add css in wp theme. ->search google. |
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 $paged; | |
$posts_per_page = 9; | |
$settings = array( | |
'showposts' => $posts_per_page, | |
'post_type' => 'portfolio', | |
'orderby' => 'menu_order', | |
'order' => 'ASC', | |
'paged' => $paged) | |
); |
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_home() || is_front_page() ) : ?> | |
<!-- Homepage Only Code --> | |
<?php else : ?> | |
<!-- Other Page Code --> | |
<?php endif; ?> |
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' => 10, 'post_type'=> 'custom-post-type' ); | |
$myposts = get_posts( $args ); | |
foreach( $myposts as $post ) : setup_postdata($post); ?> | |
<?php | |
$job_link= get_post_meta($post->ID, 'job_instructions', 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 | |
// in functions.php | |
add_theme_support( 'post-thumbnails'); | |
/* | |
Wordpress crop an image = 5 size. Sizes are given below | |
thumbnail // Thumbnail (default 150px x 150px max) | |
medium // Medium resolution (default 300px x 300px max) | |
large // Large resolution (default 640px x 640px max) | |
full // Original image resolution (unmodified) | |
But, if you need custom size, you can define sizes in functions.php |
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
http://stop-metastasized-cancer-fast.com/ | |
b2bleadarmy.com | |
http://www.tocpns.co.id/v2/ | |
http://iamsufian.rf.gd/ | |
http://iamsufian.rf.gd/work-example | |
http://iamsufian.rf.gd/work-example3 | |
http://iamsufian.rf.gd/work-example2/ |
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
The beginning: CSS-file (theme details) | |
/* | |
Theme Name: Twenty Ten | |
Theme URI: http://wordpress.org/ | |
Description: The 2010 default theme for WordPress. | |
Author: wordpressdotorg | |
Author URI: http://wordpress.org/ | |
Version: 1.0 | |
Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu (optional) |
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 new_excerpt_more($more) { | |
return ''; | |
} | |
add_filter('excerpt_more', 'new_excerpt_more', 21 ); | |
function the_excerpt_more_link( $excerpt ){ | |
$post = get_post(); | |
$excerpt .= '<a href="'. get_permalink($post->ID) . '">Read More </a>.'; | |
return $excerpt; | |
} |
OlderNewer