Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter paulgobble

    (@paulgobble)

    Some of my quoting is being changed in the post above. Some of those double/tripple quotes are escaped single quotes.

    Forum: Fixing WordPress
    In reply to: Pages and The Loop
    Thread Starter paulgobble

    (@paulgobble)

    hmmmm… the codex seams to be down

    Forum: Fixing WordPress
    In reply to: Pages and The Loop
    Thread Starter paulgobble

    (@paulgobble)

    Yes, but how?

    Forum: Fixing WordPress
    In reply to: Pages and The Loop
    Thread Starter paulgobble

    (@paulgobble)

    Hmmm. Looking into the archive.php, no provisions were made for weekly. How do I fix that, I wonder. Time to tinker.

    Forum: Fixing WordPress
    In reply to: Pages and The Loop
    Thread Starter paulgobble

    (@paulgobble)

    I’m using the default Kubrick theme, slightly tweeked. The archive.php is untouched.

    Forum: Fixing WordPress
    In reply to: Pages and The Loop
    Thread Starter paulgobble

    (@paulgobble)

    https://www.sbox.net/blogrd105

    Go to the Weekly Posters (exparimental) link

    Forum: Fixing WordPress
    In reply to: Pages and The Loop
    Thread Starter paulgobble

    (@paulgobble)

    Thats interesting. Its close to what I want. I tried this code
    <?php
    /*
    Template Name: Weekly Posters #4 (Say NO to The Loop!)
    */
    ?>
    <?php get_header(); ?>

    <div id="content" class="widecolumn">

    <h2>Weekly Archive</h2>

    <p><?php wp_get_archives('type=weekly&format=html');???></p>

    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    </div>

    <?php get_footer(); ?>

    One big problem, though. When I click on one of the links this generates, I’m take to a yearly archive for 2005!

    Forum: Fixing WordPress
    In reply to: Pages and The Loop
    Thread Starter paulgobble

    (@paulgobble)

    Here’s my code for the custom Page template

    <?php
    /*
    Template Name: Weekly Posters
    */
    ?>
    <?php get_header(); ?>
    <h2>The Weeks Posts:</h2>
    <ul>
    <!-- Start The Loop. -->
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php if (get_the_time('U') >= date(U) - (60 * 24 * 7) ) : ?>

    <li><?php the_excerpt(); ?></li>

    <?php endif; ?>
    <?php endwhile; ?>
    <?php else:???>
    <li><?php _e('Sorry, no posts matched your criteria.');???></li>
    <?php endif;???>
    <!-- Close The Loop. -->

    </ul>
    <?php get_footer(); ?>

    All this produces a list with two empty list items

    Forum: Fixing WordPress
    In reply to: Pages and The Loop
    Thread Starter paulgobble

    (@paulgobble)

    Iawatai, I think your last suggestion is what I’ve been trying. Make a custom Page template file that includes “The Loop”. Use an if-then block to filter out posts that are over a week old. Then make a Page that uses this new template file as its template. Give this new page a title, but no story.

    The problem I’m having is that the resulting page always returns no posts other that the Page itself. “The Loop” in this Page never loops over the posts. How do I tell this custom page to look at all of the post, not just at itself?

    Forum: Fixing WordPress
    In reply to: Pages and The Loop
    Thread Starter paulgobble

    (@paulgobble)

    After looking over the above post (thank you), I went back to the codex. It gave me an idea to try to test to see what I’m doing wrong, or what it is that I don’t understand.

    Here’s what I did. As suggested in the codex, I began a new custom page template with a copy of index.php. And then all I did to change it was to add the 4 template descriptions at the top of the file, changed the class to “widecolumn”, and deleted the line that loads the sidebar. Thats it. Saved it with a new name.

    Then I went to the Write Pages page, made a new page and selected my new index-based template file as the template. Gave the page a title and some words. Saved the new page.

    I’m sure all of you know what I saw when I went to the new page. A page with one post on it. That post had title and copy that I typed in when I made the page. What I don’t understand is what is different about this page and the index.php. Their templates have (mostly) the same code, but in index.php “The Loop” loops over all the posts. On my custom page “The Loop” loops over just the page itself. What decides which set of records gets looped over? How do you “feed” “The Loop”?

    What I’m trying to build is a “page” which acts like a filter, which will show a list of authors who have posted new material in the last seven days and links to those posts. I think I’ve come up with the logic to insert into “The Loop”, but I don’t know where to apply it. I don’t want this filtered page to replace the main index.php. But if I make it a Page, then only the contents of the Page itself gets filtered, not the contents of the entire blog.

    I also tried to make it a stand alone page (weekly_posters.php) and saved it in the same directory as index.php. But when point my browser to it it just get the following error message: No input file specified.

    Anybody understand what I’m trying to do and how to do it?

    Thanks for reading,
    Paul

    Thread Starter paulgobble

    (@paulgobble)

    Something else I was wondering about list_authors: The resulting list items are links to archives of that authors posts – its is great, but it took me by surprise. Where in the code are the links generated? Is this controllable?

    Forum: Plugins
    In reply to: New Exhibit woes
    Thread Starter paulgobble

    (@paulgobble)

    Ah! Those diminutive “t” directories. They are owned by me and have read access by all.

    Forum: Plugins
    In reply to: New Exhibit woes
    Thread Starter paulgobble

    (@paulgobble)

    Where is the thumbnail directory?

    Forum: Plugins
    In reply to: Exhibit 10d woes in WP1.5
    Thread Starter paulgobble

    (@paulgobble)

    OK, things are getting better. I found the exhibit11d2.zip Rustindy mentioned. Installed it. I had to make the same edits to the code as I had to before. After this Things were better.

    The only thing it cant do right now is to use the Post Config pulldown to choose “Selected Thumbnails To Appear Here” token. All of the other choices in the pulldown work – so it was pretty easy to choose one of those and edit it to read <!–exhibit–>, or just type it in by hand.

    Does any one else know what I’m doing wrong? I’ve got this to the point where I can use it, but I doubt my users will be very comfortable with it.

    – Paul

    Thread Starter paulgobble

    (@paulgobble)

    GREAT!

    After uploading a new wp-login.php NO MORE ERRORS!

    I just wish I could find the logic behind what was fixed. I can discern no differences in the new files that worked and the old files that gave errors. Oh well, don’t look a gift house in the mouth!

    THANKS PODZ! WP Rocks! The WP community Rocks!

    – Paul

Viewing 15 replies - 1 through 15 (of 23 total)