S1lv3rdo7
Regular Member
- Jul 17, 2010
- 486
- 316
Does anyone know of a resource for wordpress for coding pages?
It seems like the simplest thing I want to do always takes me a fuckin hour to do. For example. I just want to make a blank full width page. I've been trying to do this shit for about an hour now. Anyone know of a resource for basic coding help like this?
I've created a blank .php file and added it to the /www/wp-content/themes/blackbird folder via FTP. I just don't know what code to get rid of so the theme is still there but the content is blank with no sidebar.
It seems like the simplest thing I want to do always takes me a fuckin hour to do. For example. I just want to make a blank full width page. I've been trying to do this shit for about an hour now. Anyone know of a resource for basic coding help like this?
I've created a blank .php file and added it to the /www/wp-content/themes/blackbird folder via FTP. I just don't know what code to get rid of so the theme is still there but the content is blank with no sidebar.
Code:
<?php
/*
Template Name: Blog Page
*/
?>
<?php get_header(); ?>
<div class="page-heading">
<h1 class="page-title"><?php the_title(); ?></h1>
</div>
<div class="clear"></div>
<!--Start Page Content -->
<div class="page-content-container">
<div class="page-content">
<div class="grid_16 alpha">
<div class="content-bar">
<?php
$limit = get_option('posts_per_page');
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('showposts=' . $limit . '&paged=' . $paged);
$wp_query->is_archive = true;
$wp_query->is_home = false;
?>
<!-- Start the Loop. -->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!--post start-->
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="post_title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(esc_attr__('Permalink to %s', 'black-bird'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h1>
<div class="post_content">
<?php if (has_post_thumbnail()) { ?>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('post_thumbnail', array('class' => 'postimg')); ?>
</a>
<?php } else { ?>
<?php blackbird_get_image(595, 300); ?>
<?php
}
?>
<?php the_excerpt(); ?>
<div class="clear"></div>
<?php if (has_tag()) { ?>
<div class="tag">
<?php the_tags(__('Post Tagged with ', ', ', '')); ?>
</div>
<?php } ?>
<a class="read_more" href="<?php the_permalink() ?>"><?php _e('Read More', 'black-bird'); ?></a> </div>
<ul class="post_meta clearfix">
<li class="posted_by"><span><?php _e('Posted by', 'black-bird'); ?></span>Â Â <img src="<?php echo get_template_directory_uri(); ?>/images/admin.png" /><?php the_author_posts_link(); ?></li>
<li class="post_category"><span><?php _e('Posted in', 'black-bird'); ?></span>Â Â <?php the_category(', '); ?></li>
<li class="post_date"><img src="<?php echo get_template_directory_uri(); ?>/images/date.png" />Â Â <?php echo get_the_time('M, d, Y') ?></li>
<li class="post_comment"><img src="<?php echo get_template_directory_uri(); ?>/images/comment.png" />Â Â <span><?php comments_popup_link('No Comments.', '1 Comment.', '% Comments.'); ?></span></li>
</ul>
</div>
<!--End Post-->
<?php
endwhile;
else:
?>
<div class="post">
<p>
<?php _e('Sorry, no posts matched your criteria.', 'black-bird'); ?>
</p>
</div>
<?php endif; ?>
<!--End Loop-->
<nav id="nav-single" style="margin-top:20px;"> <span class="nav-previous">
<?php next_posts_link( __( '↠Older posts', 'black-bird' ) ); ?>
</span> <span class="nav-next">
<?php previous_posts_link( __( 'Newer posts →', 'black-bird' ) ); ?>
</span> </nav>
</div>
</div>
<div class="grid_8 omega">
<!--Start Sidebar-->
<?php get_sidebar(); ?>
<!--End Sidebar-->
</div>
</div>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>
Last edited: