Horje
multiple post sections with seo friendly filtering - Wordpress Solution
Requirements: Code and template/CPT/taxonomy/rewrite details to enable a Wordpress site with multiple sections containing posts. Posts should be possible to be browsed paginated, and filtered using SEO friendly urls - if possible, and without Multisite. e.g. example.com/blog/ - shows all posts in 'blog' section example.com/blog/ - single post example.com/blog/date/yyyy/mm - posts by date example.com/blog/author/ - posts by author example.com/blog/category/ - posts by category example.com/blog/archive/ -posts by tag example.com/news/ - shows all posts in 'news' section example.com/news/date/yyyy/mm - fposts by date etc example.com/page/subpage/blog3/ etc -User should be able to select which blog to post to from the admin area. -Code to generate links to the date/author/tags with total counts -RSS feeds generated for posts

Solution - 1

create following files in your theme folder index.php archive.php author.php tag.php category.php and include following



<?php if(have_posts()) :?>
	<?php while(have_posts()) : the_post();?>
			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
				<h1 class="entry-title"><a rel="nofollow" href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'theme' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
				<div class="entry-summary">
			<?php the_excerpt(); ?>
		</div><!-- .entry-summary -->
			</article>		 
	<?php  endwhile;?>
<?php endif;?>	
and in create a file named as single.php and include following

<?php if(have_posts()) :?>
	<?php while(have_posts()) : the_post();?>
			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
				<h1 class="entry-title"><a rel="nofollow" href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'theme' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
				<div class="entry-summary">
			<?php the_content(); ?>
		</div><!-- .entry-summary -->
			</article>		 
	<?php  endwhile;?>
<?php endif;?>	
in archieve.php you can also include
	<header class="page-header">
					<h1 class="page-title">
						<?php if ( is_day() ) : ?>
							<?php printf( __( 'Daily Archives: %s', 'theme' ), '<span>' . get_the_date() . '</span>' ); ?>
						<?php elseif ( is_month() ) : ?>
							<?php printf( __( 'Monthly Archives: %s', 'theme' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'theme' ) ) . '</span>' ); ?>
						<?php elseif ( is_year() ) : ?>
							<?php printf( __( 'Yearly Archives: %s', 'theme' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'theme' ) ) . '</span>' ); ?>
						<?php else : ?>
							<?php _e( 'Blog Archives', 'theme' ); ?>
						<?php endif; ?>
					</h1>
				</header>
let me know if this what you want


Solution - 2

Hi. As I see what you want is already built in wordpress theme if you are using an equivalent theme, but there are something I can't understand in your question, I didn't understand what you mean by "section", I think it's not a category, because you said: example.com/blog/category/ - posts by category and: example.com/news/ - shows all posts in 'news' section So can you explain more please?


Solution - 3

Have you tried the cpt plugins to setup the different sections (news/blog/...) ? fx: http://wordpress.org/extend/plugins/custom-post-type-ui/screenshots/ http://wordpress.org/extend/plugins/simple-custom-types/screenshots/ http://wordpress.org/extend/plugins/ultimate-post-type-manager/screenshots/


Solution - 4

Hi, From my understanding, you may need have a look at this plugin to control the permalinks http://wordpress.org/extend/plugins/wp-htaccess-control/





Wordpress

Related
Sidebar widget popular post plug in - Wordpress Solution Sidebar widget popular post plug in - Wordpress Solution
Assign specific nextgen gallery to specific custom post type post - Wordpress Solution Assign specific nextgen gallery to specific custom post type post - Wordpress Solution
Add_Action Wordpress Gallery to use Name Instead of Post ID - Wordpress Solution Add_Action Wordpress Gallery to use Name Instead of Post ID - Wordpress Solution
Need Help With Syntax Error: syntax error, unexpected T_ECHO - Wordpress Solution Need Help With Syntax Error: syntax error, unexpected T_ECHO - Wordpress Solution
Modify wp-signup.php - Wordpress Solution Modify wp-signup.php - Wordpress Solution

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9