Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter ohnoesitasploded

    (@ohnoesitasploded)

    Okay, did a little more digging, and I was able to get what I wanted by following the directions here:
    https://blogmum.com/2009/05/how-to-make-a-wordpress-archive-page/

    With a little customization, I now have the page doing exactly what I want.

    If anyone else is having this issue, here is my archive-page.php:

    <?php
    /*
    Template Name: Archive
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="content-container">
    <div id="content">
    <div id="body">
    <h2><?php the_title(); ?></h2>
    <p class="majuscule">Posts by category</p>
    <div class="post">
    		<?php wp_list_categories(); ?>
    
    <p class="majuscule">All post titles:</p>
    		<?php wp_get_archives('type=postbypost') ?>
    </div>
    		<?php edit_post_link(__('Edit this entry.', 'elegant-grunge'), '<p>', '</p>'); ?>
    
    </div>
    
    <?php if ( get_option('page_setup') != 'no-sidebar' ) get_sidebar(); ?>
    </div>
    
    <div class="clear"></div>
    </div>
    
    <?php get_footer(); ?>

    Still, the [archive] shortcode is a lot easier, so it would be nice if the Elegant Grunge theme supported it.

    Thread Starter ohnoesitasploded

    (@ohnoesitasploded)

    I was following the directions here:
    https://support.wordpress.com/archives-shortcode/

    “To create an archive index for your blog, simply add a new page…and type the following shortcode into your visual editor:

    [archives]”

    The page you linked to seems to be geared towards WP 1.5x, so I don’t know how applicable it is to 2.8.4, but it references an ‘archives.php’ that should be in the theme directory. There’s no such file in the the Elegant Grunge theme directory, so I guess that’s why it’s broken– it’s not a supported feature of the theme.

    That sucks, but thanks for pointing me in the right direction.

    Thread Starter ohnoesitasploded

    (@ohnoesitasploded)

    Hmmmm… I disagree. Re-formatting and re-uploading all of the images in my existing posts is neither simple nor straightforward.

    Also, I write mostly technical how-to posts, and many of my images have small details for which it is helpful to be able to click on the image to enlarge it.

    Also, in the Future when we are using higher resolution monitors when we’re not gadding about on rocket packs, I want to be able to adjust my site layout by changing around some CSS, rather than rebuilding the entire site.

    “Solution: Don’t Do That” posts are rarely helpful.

    I figured out a dumb hack/workaround:
    In Media.php, line 580, change the line:
    return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: ' . (10 + (int) $width) . 'px">'
    to:
    return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: XXXpx">'
    Where XXX is your desired width for the containing div in pixels.

    But, this function should really just return the maximum width that you set for images in the WP options, like images without captions.

    Thread Starter ohnoesitasploded

    (@ohnoesitasploded)

    Any help on this would be appreciated… My existing posts are all screwed up…

    Just updated to WP 2.8.1, and it’s now broken again…

    I tried to apply the same media.php hack to the new version, but the code is changed and I can’t figure out how to do it.

    Anyone else seeing this?

    I have this problem in WP 2.8. The media.php hack fixed it for me, but it would be really nice if this could be fixed permanently.

    I don’t have podpress installed, btw.

    Thread Starter ohnoesitasploded

    (@ohnoesitasploded)

    Also, the “use google chrome” workaround doesn’t fix the existing posts…

    Where is the caption shortcode processed? For the life of me I can’t find it…

    Thread Starter ohnoesitasploded

    (@ohnoesitasploded)

    Okay, the “large” photo size is not grayed out in Google Chrome, so I can use that to format the pictures correctly (I was using Firefox).

    But, the caption code should handle images identically to the rest of WordPress, so I’m calling that a bug.

    Thread Starter ohnoesitasploded

    (@ohnoesitasploded)

    But photos without captions are sized correctly, even though they’re uploaded at the same size.

    One of the features I really like about WordPress is that it will resize your large photos for you so that you don’t have to screw around with formatting all the time. Seems like the caption code should also respect the maximum image size.

    Anyway, even if I wanted to format the pictures as “large” size, the option is grayed out in the image manager. And I’m using medium and thumbnail sizes elsewhere, I can’t change them.

    Any help appreciated.

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