• I used to have 25 different category templates working quite happily on my site

    I saved each template naming them category-50.php, category-10.php etc. etc. with the numbers 50, and 10 corresponding to their category ID

    This worked fine up until I updated to WP 3.8

    Since then none of the templates work.

    Is there something that I should be changing to get my site back up and working ?

    thanks for your time

    ciao
    keane

    http://www.barganews.com

    <?php
    /*
    Template Name: bargajazzclub
    */
    ?>
    <?php include ('header.php'); ?>
    <a href='http://bargajazzfestival.wix.com/bargajazzclub' target="_blank"><img src='http://www.barganews.com/wp-content/uploads/2013/06/bargajazzclub_banner.jpg' /></a>
    <div class="row">
    <?php get_template_part( 'loop', '4col' ); ?>
    </div>
    <div class="archive-pagination">
    <?php
    	// load pagination
    	global $wp_query;
    
    	$big = 999999999;
    	echo paginate_links( array(
    		'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
    		'format' => '?paged=%#%',
    		'current' => max( 1, get_query_var('paged') ),
    		'total' => $wp_query->max_num_pages
    	) );
    	?>
    </div>
    <div class="clearfix"></div>
    <?php include ('footer.php'); ?>
Viewing 15 replies - 1 through 15 (of 15 total)
  • Can you list a few links where you see this? Try clearing any server cache/CDN in use and also your local browser cache. I see some Cloudflare code in the source….

    Thread Starter doggybag

    (@doggybag)

    http://www.barganews.com/category/barga-jazz-festival/

    is a good example …. clicking on one of those articles only brings up another page which does not open up the full article

    ciao keane

    Thread Starter doggybag

    (@doggybag)

    also there used to be 12 articles with images on the template page for barga jazz – now only 10 show up

    ciao
    keane

    So let’s be clear, the category with ‘x’ id that is using a custom category post template category-x.php is ‘barga-jazz-festival’. If so, that page seems to output a series of posts. You are then saying that within this output, a link used to behave ‘like this’ (take you to a single post page without excerpt)? Yes?

    The post titles here are pointing to a permalink structure of:

    /%year%/%month%/%day%/%postname%/

    Did you reset (re-save) the permalink setting but make sure to then also clear any CDN in use afterwards?

    Thread Starter doggybag

    (@doggybag)

    http://www.barganews.com/category/barga-jazz-festival/

    category template: category-9.php pints to Category ID 9 – barga jazz festival

    That page used to open with 12 images and links which when on of them was clicked would take you to that full article – this no longer happens

    permalink structure is: http://www.barganews.com/2014/01/21/sample-post/

    So, in the custom permalink box at permalinks settings, you have in it:

    /%year%/%month%/%day%/%postname%/

    ??

    And I think I see now (remember, I have never seen this site before :-), it looks like it is outputting 10 posts per page with pagination – is this then all of the posts (22 pages of posts)? That occurs everywhere you have applied your custom category templates?

    Next: Are you using a child theme and did the parent theme get updated?

    Is ‘Patterns’ the parent theme and you are using a Child Theme ‘patterns-new’? If so, you may need to work with your theme provider on any issues with that theme/version and WP3.8.

    Thread Starter doggybag

    (@doggybag)

    It looks like it is outputting 10 posts per page with pagination – is this then all of the posts (22 pages of posts)? That occurs everywhere you have applied your custom category templates?

    yes every single one does the same

    no child theme – this is in fact a parent theme

    Montis Montis – Gabfire Support Representative

    I believe this is an issue with WP3.8. Can you try changing the Settings>Reading>Blog pages show at most to 12?

    Can you please verify that the custom templates still exist (check via FTP) and were not overwritten on a theme update?

    Thread Starter doggybag

    (@doggybag)

    So, in the custom permalink box at permalinks settings, you have in it:

    /%year%/%month%/%day%/%postname%/

    ??

    http://www.barganews.com/wp-content/uploads/2014/01/Screen-Shot-2014-01-22-at-01.13.01.png

    Thread Starter doggybag

    (@doggybag)

    all custom templates exist – they were not overwritten on a theme update … but I have disabled all but two for the moment

    yes, it should be monthnum, but did you click on the custom radio button, save the setting, then clear any cache/cdn? That step may be the issue.

    Thread Starter doggybag

    (@doggybag)

    Permalink structure updated.

    Thread Starter doggybag

    (@doggybag)

    cache cleared

    Looks like everything else is working, so it must be an issue with the theme and your custom category templates. Can you compare your custom category templates with the themes current cat/archive/loop template (and also, make sure that the template loop-4col.php is in place and correct).

    Also, unless I know which category to look at (which ones are using a custom page template now), I will not be able to note an issue.

    Thread Starter doggybag

    (@doggybag)

    ok checking now

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘separate templates for categories no longer working since 3.8 update’ is closed to new replies.