Last active
August 29, 2015 14:16
-
-
Save shahadat014/65d30f9f009356e9d0c9 to your computer and use it in GitHub Desktop.
create wordpress site all everything simple code.
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
style="background-image: url(\''.$background.'\');" | |
include_once('inc/default-supports.php'); | |
'.do_shortcode ($content).' | |
// for custom post in the shortcode | |
'.get_permalink().' | |
'.get_the_excerpt().' | |
'.get_the_title().' | |
<div class="fl_left"> | |
<h1><a href="<?php bloginfo('home'); ?>"><?php bloginfo('name'); ?></a></h1> | |
<p><?php bloginfo('description'); ?></p> | |
</div> | |
// for bangla date,author,commenrs,category | |
<div class="bottom-article"> | |
<ul class="meta-post"> | |
<li><i class="icon-calendar"></i><?php _e('পোষ্টের তারিখ', 'bresponZive'); ?><?php the_time(' >> F d, Y'); ?></li> | |
<li><i class="icon-user"></i> <?php _e(' >> লেখক ', 'bresponZive'); ?> <?php the_author_posts_link(); ?></li> | |
<li><i class="icon-folder-open"></i><?php the_category(''); ?></li> | |
<li><i class="icon-comments"></i><a href="<?php comments_link();?><?php comments_popup_link( 'কোন মতামত নাই', '১ টি মতামত', '% মতামত', 'comments-link', 'Comments are off for this post'); ?></li> | |
</ul> | |
<a href="<?php the_permalink(); ?>" class="pull-right">Continue reading <i class="icon-angle-right"></i></a> | |
</div> | |
<?php the_date(); ?>(for the date) | |
<?php the_author(); ?>(for author title) | |
<?php the_author_meta('description'); ?>(for author description) | |
<?php the_author_meta('user_email'); ?>(for author email) | |
<?php the_author_meta('user_url'); ?>(for author website) | |
<?php the_post_thumbnail('id' ); ?> (for post thumbnail) | |
<?php comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post'); ?>( for comments) | |
<?php the_category(','); ?>(for category post) | |
<?php the_author_posts_link(); ?> ( for author link) | |
<?php the_permalink(); ?>(for title link) | |
<?php the_excerpt(); ?>(for content or p) | |
<?php the_title(); ?>(for title) | |
<?php wp_head(); ?>, <?php wp_footer(); ?> | |
<?php get_header(); ?>, <?php get_footer(); ?>, <?php get_sidebar(); ?> | |
<?php echo get_template_directory_uri(); ?>/(dynamic image css js ect.) | |
<?php if( ! dynamic_sidebar('single_promo') ) : ?> end <?php endif; ?>( for sidebar) | |
<?php dynamic_sidebar('blog_page_widget'); ?>(without loop for sidebar) | |
<?php get_template_part( 'post-excerpt' ); ?> (part of theme call no php ei{post-excerpt}) | |
<?php language_attributes('xhtml'); ?> (for language) | |
<?php wp_nav_menu( array( 'theme_location' => 'menu_footer') ); ?>(for footer menu) | |
<p>php bloginfo('description'); ?></p>(for footer p) | |
<a href="<?php bloginfo('home'); ?> update now <?php echo site_url(); ?> (for logo link) | |
<?php if( is_home() || is_front_page() ) : ?> end <?php endif; ?> (this part just show home page) | |
( | |
<title><?php wp_title( '|', true, 'right' ); ?></title> | |
<meta charset="<?php bloginfo( 'charset' ); ?>"> | |
<meta name="viewport" content="width=device-width"> | |
<link rel="profile" href="http://gmpg.org/xfn/11"> | |
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
...............2........... | |
<title><?php bloginfo('name'); ?><?php wp_title(); ?></title> | |
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen"/> | |
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?> charset=<?php bloginfo('charset'); ?>" /> | |
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> | |
<?php wp_get_archives('type=monthly&format=link&limit=12'); ?> | |
<?php //comments_popup_script(); // off by default ?> | |
<?php wp_head(); ?> | |
) | |
(/* | |
Theme Name:Business Map | |
Theme URI: http://www.designingway.com/wp_theme_developedment | |
Description: A theme for wordpress | |
Version: 1.0 | |
Author: Shahadat Hossen | |
Author URI: http://designingway.com/404 | |
*/)(for style css) | |
( | |
<?php if(have_posts()) : ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<div id="post-<?php the_ID(); ?>" class="sadia fix"> | |
<div id="post-title-<?php the_ID(); ?>" class="clearfix full"> | |
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> | |
</div> <!-- end div .post-title --> | |
<?php the_excerpt(); ?> | |
<?php get_template_part( 'postmeta' ); // Post Meta (postmeta.php) ?> | |
</div> <!-- end div #post --> | |
<?php endwhile; ?> | |
<?php endif; ?> | |
) (for post-excerpt) | |
( | |
<?php | |
/* | |
* The template for displaying post meta. | |
* | |
* @package WordPress | |
* @subpackage Brightpage | |
*/ | |
?> | |
<div class="postmeta clearfix"> | |
<div class="meta_left"> | |
<?php _e('Posted by', 'brightpage'); ?> <?php the_author(); ?> <?php _e('on', 'brightpage'); ?> <?php the_time('M d, Y') ?><br /> | |
<?php the_category(', '); ?><?php if(function_exists("the_tags")) the_tags(' • Tags: ', ', ', ''); ?> <?php if ( comments_open() ) : ?>• <?php _e('Comment feed', 'brightpage'); ?> <?php post_comments_feed_link('RSS 2.0'); ?><?php endif; ?> - <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php _e('Read this post', 'brightpage'); ?></a> <?php edit_post_link('Edit', ' | ', ''); ?> | |
</div> | |
<?php if ( comments_open() ) : ?><div class="meta_right">• <?php comments_popup_link('No Comment', '1 Comment', '% Comments'); ?></div><?php endif; ?> | |
</div> | |
) | |
(for postmeta) | |
( <?php if ( have_posts() ) : ?> | |
<h1 class="archive_title fix"> | |
<?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', 'brightpage'); ?> '<?php echo single_cat_title(); ?>' <?php _e('Category', 'brightpage'); ?> | |
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> | |
<?php _e('Archive for the', 'brightpage'); ?> <?php single_tag_title(); ?> Tag | |
<?php /* If this is a daily archive */ } elseif (is_day()) { ?> | |
<?php _e('Archive for', 'brightpage'); ?> <?php the_time('F jS, Y'); ?> | |
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?> | |
<?php _e('Archive for', 'brightpage'); ?> <?php the_time('F, Y'); ?> | |
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?> | |
<?php _e('Archive for', 'brightpage'); ?> <?php the_time('Y'); ?> | |
<?php /* If this is a search */ } elseif (is_search()) { ?> | |
<?php _e('Search Results', 'brightpage'); ?> | |
<?php /* If this is an author archive */ } elseif (is_author()) { ?> | |
<?php _e('Author Archive', 'brightpage'); ?> | |
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> | |
<?php _e('Blog Archives', 'brightpage'); ?> | |
<?php } ?> | |
</h1> | |
<?php get_template_part( 'post-excerpt' ); ?> | |
<?php else : ?> | |
<h2><?php _e('404 Error: Not Found', 'Brightpage'); ?></h2> | |
<?php endif; ?> | |
) | |
(for archive) | |
( | |
<?php if(function_exists('wp_pagenavi')): ?> | |
<div class="wp-page-navi-various"> | |
<?php wp_pagenavi(); ?> | |
</div> | |
<?php else : ?> | |
<div class="post_navigation single_page_sidebar_navigation"> | |
<?php Previous_posts_link( '<span class="meta-nav">←</span> Previous', 0 ); ?> | |
<?php next_posts_link( 'Next <span class="meta-nav">→</span>', 0 ); ?> | |
</div> | |
<?php endif; ?> | |
and call | |
<?php get_template_part('inc/pagination'); ?> | |
) | |
( for pagination) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment