Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter onebitrocket

    (@onebitrocket)

    It 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\theme

    I 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

    Hey 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

    Thread Starter onebitrocket

    (@onebitrocket)

    I’m using a child theme of twenty-twelve
    I thought the process was:

    1. Create a content-new.php file
    2. Create a news-index.php file, based off index.php
    3. Modify get_template_part( 'content', get_post_format() ); to get_template_part( 'content', 'news' );
    4. Generate and page called ‘news’ in the pages admin area
    5. 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

    Thread Starter onebitrocket

    (@onebitrocket)

    Thanks 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>

Viewing 5 replies - 1 through 5 (of 5 total)