onebitrocket
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Theme continuous deployment from bitbucket to windows azureIt turns out all that is required is a .deployment file in the repository
Azure has Kudu installed and the deployment management service.
[config]
DEPLOYMENT_TARGET = D:\home\site\wwwroot\path\to\themeForum: Fixing WordPress
In reply to: One page per year. CategoryI want essentially archive within a category, tag, page etc
/page/2 doesn’t really work for the site I’m migrating in to WordPress.
The current site enables visitors to go directly to a month/year, where as is if the default pagination is used in WordPress, the page that January 2013 content lives on would be a complete guess.
SO the URL structure I’m looking to achieve follows:
example.com/%taxonomy%/month/year rather than example.com/%taxonomy%/page/2/Primarily I’ll be using categories to build my URLs in my menus.
Does that make sense?
Thanks
Forum: Fixing WordPress
In reply to: One page per year. CategoryHey keesiemeijer,
I just stumbled across this plugin.
Wow, I solves so many problems that I was trying to resolve.I achieved exactly what I wanted with the pagination of my posts.
Is it possible to modify the url structure to follow this monthly navigation?
Thanks
Forum: Fixing WordPress
In reply to: custom content-new.php file won't display on a page templateI’m using a child theme of twenty-twelve
I thought the process was:- Create a content-new.php file
- Create a news-index.php file, based off index.php
- Modify
get_template_part( 'content', get_post_format() );
toget_template_part( 'content', 'news' );
- Generate and page called ‘news’ in the pages admin area
- Change the news page template to the news-index.php template
Does setting the posts page the news page by default read content.php?
Thanks
Forum: Fixing WordPress
In reply to: archive dropdown for each yearThanks for your help, but it wasn’t the solution I was looking for.
I did find a fix though which I’m still working on.Eventually I want a function that will recognise if the checkbox in the archive widget has been checked and then replace the standard widget select area width the code below.
<ul> <?php /**/ $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'post' ORDER BY post_date DESC"); foreach($years as $year) : ?> <li> <label><?php echo $year; ?></label> <select name="archive-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;"> <?php $months = $wpdb->get_col("SELECT DISTINCT MONTH(post_date) FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'post' AND YEAR(post_date) = '".$year."' ORDER BY post_date DESC"); foreach($months as $month) : ?> <option value="<?php echo get_month_link($year, $month); ?>"> <?php echo date( 'F', mktime(0, 0, 0, $month) );?> </option> <?php endforeach;?> </select> </li> <?php endforeach; ?> </ul>