Viewing 15 replies - 46 through 60 (of 70 total)
  • Well sort of fixed….this is really crazy. I hope the developer see this as it will most likely lead to a fix.

    Like I said, I had the static home page showing comments again. Happily, I went in and edited the “home” page to change the text a little. Nothing else. After clicking enter, the comments no longer showed up!

    After a bunch of testing, here is how I can get it working, after editing the page:

    1. Deactivate Static Page Plugin
    2. Activate Filosofo Plugin
    3. Go to Options/Filosofo and select the page as the static home page. Do not do any permalink changes.
    4. Deactivate Filosofo
    5. Activate Statis Page Plugin

    Whew!

    So, the big question is, what does the Edit Page function reset, that the Filosofo resets back, that the Static Page Plugin looks at that blocks comments?

    More info. Updating ANY post, not just the one I’m making static, makes me have to go through all the steps again.

    Well, I have a solution, that scare me to death — I keep both plugins activated and everything works as it should.

    Slobizman, check your other thread ??

    Thread Starter Denis de Bernardy

    (@denis-de-bernardy)

    static front page does not block comments from appearing on the front page — wordpress does, via comments_template().

    A comment above mentions you can work around this by manually bypassing the call, i.e.

    include (TEMPLATEPATH . ‘/comments.php’);

    but this does not work in practice, because the comment-related variables will not work.

    the following, however, should work:

    $GLOBALS[‘withcomments’] = true;
    comments_template();

    Yes, that worked. But, unfortunately for me, not all the way. It works for comments_template() but not for paged_comments_template(), from the Paged Comment Plugin, which I have to use for this blog.

    I guess he uses another global variable.

    Arrrghhh!

    If it helps, in his paged-comments.php file he has this function, which refers to the “withcomments”

    // Load paged comments template (function based on comments_template() in comment-functions.php).
    //
    // I had initially intended to instruct users to modify template files and include '/comments-paged.php'
    // as an argument to comments_template(). Unfortunately, for comment-laden posts, this would have been
    // inefficient (comments_template() issues a query which returns all comments for a post). A better
    // solution, for the purposes of this plugin at least, would be to have comments_template() made
    // "pluggable" (like those functions in pluggable-functions.php). This would allow me to override the
    // function if paged comments were enabled. (It would also mean users could load the plugin without
    // the need to edit any files at all.)
    function paged_comments_template($file = '/comments-paged.php')
    {
    global $paged_comments, $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ID, $user_identity;

    $include = apply_filters('comments_template', TEMPLATEPATH . $file);
    if (!file_exists($include)) $include = ABSPATH.'wp-content/themes/default/comments-paged.php';

    // revert to original comment template if:
    // + the current context is inappropriate (e.g. post listing)
    // + template for paged comments does not exist
    if (!paged_comments() || !file_exists($include)) {
    // load comments.php from current theme folder (or 'default' theme folder if it doesn't exist)
    comments_template();
    return;
    }

    I think it’s reverting to the original comment template in the area you see at the bottom of the code in the last section of the code above. Maybe.

    EDIT: Yup. I took out that section and it sort of worked. I displayed the comments initially, but when I clicked on for the next page of comments it had a not found. I think it’s confused where everything is when the static plugin is active.

    Thread Starter Denis de Bernardy

    (@denis-de-bernardy)

    static front page is not intrusive on the WP workflow, i.e. it lets WP do: if not ( is_single() or is_page() ) then no comments.

    file a bug report in WP if you think there should be an easy way to display comments on the front page.

    Hi
    Odd problem.
    I’m using widgets to populate the sidebar, including one as a list of pages.
    The page with the “home” plug does appear as Home, but…
    it also appears again in the list of pages.
    Thoughts?

    Ted

    Well, not sure about this problem. Since installing static front page, “recent posts” listing doesn’t turn up in the sidebar on opening page. Not sure if this is the static plug-in or what.

    I’ve fiddled with the code, and can get the recent posts to turn up on the front page, but then my side bar vanishes from all other pages.

    Here’s the code as it now stands (minus the ad code):

    • <?php _e(‘Recent Posts’); ?>
      <?php
      $posts = get_posts(‘numberposts=5&offset=1’);
      foreach ($posts as $post) :
      ?>

    • “><?php the_title() ?>
    • <?php
      endforeach;
      ?>

    <?php } ?>
    <?php if ( !is_page (‘archives’) ){ ?>

    <li id=”pages”><?php _e(‘Pages’); ?>

      <?php if( is_home() ) : ?><?php wp_list_pages(‘title_li=&depth=1’); ?><?php else : ?><?php wp_list_pages(‘sort_column=menu_order&title_li=’); ?><?php endif; ?>

    <li id=”search”><?php _e(‘Search’); ?>
    <form id=”searchform” method=”get” action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>”>
    <div>
    <input type=”text” name=”s” id=”s” size=”15″ /><input type=”submit” value=”<?php _e(‘this site’); ?>” />
    </div>
    </form>

    <li id=”categories”><?php _e(‘Categories’); ?>

      <?php if( is_home() ) : ?>

      <?php wp_list_cats(‘children=0’); ?><?php else : ?><?php wp_list_cats(); ?><?php endif; ?>

    Anyone can help?

    I tried adding
    <?php if ( !is_page (‘archives’)|| (is_home() ){ ?> but it didn’t work.

    If I put <?php if (is_home() ( !is_page (‘archives’) ){ ?> in the pages and categories coding then the ‘recent posts’ turn up on the static page, but side bar vanishes from all the other pages….

    Thanks
    Alison

    Thread Starter Denis de Bernardy

    (@denis-de-bernardy)

    the latest version of the plugin fixes both of the above two issues. the plugin’s page is not up to date, but the zip is.

    Thanks. Works fine with that update.
    Ted

    Hi (again)

    Everything going well until this week when I uploaded a LOT of posts – many of which are dated 1700’s & 1800’s.
    Anyway, the earliest dated posts have hijacked my front page.

    Hmm, as I type this, I’ve just realised that they could well have hijacked every page that relies on the Main Index template.

    In any event, any thoughts you have about why the static front page has gone west would be appreciated.

    Thanks

    Ted

    Thread Starter Denis de Bernardy

    (@denis-de-bernardy)

    is the page with a slug of ‘home’ still around?

Viewing 15 replies - 46 through 60 (of 70 total)
  • The topic ‘Plugin: Static front page’ is closed to new replies.