Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter rev-max

    (@rev-max)

    Thanks you gave me a good clue/place to google from

    this was what did it!

    <?php
    if ( is_single() || is_category()) {
      $categories = get_the_category();
      if ($categories) {
        foreach ($categories as $category) {
          // echo "<pre>"; print_r($category); echo "</pre>";
          $cat = $category->cat_ID;
          $args=array(
            'orderby' => 'title',
      'order' => 'ASC',
    'cat' => $cat,
            'post__not_in' => array($post->ID),
            'posts_per_page'=>40,
            'caller_get_posts'=>1
          );
          $my_query = null;
          $my_query = new WP_Query($args);
          if( $my_query->have_posts() ) {
            echo '<h4 class="widget-title">'. $category->name . '</h4><ul>';
            while ($my_query->have_posts()) : $my_query->the_post(); ?>
              <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
             <?php
            endwhile;
          } //if ($my_query)
        } //foreach ($categories
      } //if ($categories)
      wp_reset_query();  // Restore global post data stomped by the_post().
    } //if (is_single())
    ?>

    As simonbugler mentioned, it does seem to save if you do not click “update page.”
    (just click “Add Custom Field” then move to a different page without clicking “update page.”)

    This worked for me too, so as long as I never have to update text on page I’m good. Wish I’d checked here first,, chewed up a whole afternoon upgrading to 2.8, then restoring to 2.7, then upgrading to 2.8 again!

    Oddly I find myself hoping that this is a bug in 2.7/2.8 rather than in the theme I am using…!

    Thread Starter rev-max

    (@rev-max)

    Hello All

    I set up a copy site (above) and sent Ulf login info so he could examine. Turned out WPp dtree worked fine from his end – he even sent me screenshot.

    The problem (he thought) was Firefox itself – my browser.

    Initially dismissed that advice but got bored this afternoon and pursued via google. Took mozilla hint and restarted FF in safe mode.

    Lo and behold, not only is WP d-tree now displaying just fine but firefox is lickety-split faster now too.

    Moral(s): 1) Sometimes its just your browser 2)Any donations made to this developer (Ulf) are much deserved!

    Thanks Ulf! Resolved.

    Thread Starter rev-max

    (@rev-max)

    Hmmm, its not inserting the 18×18 empty.gif before the first subcategory – this (and only this) is whats messing up the plugin’s menu display as far as I can tell

    It would be interesting to test this plugin on a different server and see if the problem could be reproduced

    Thread Starter rev-max

    (@rev-max)

    SOLVED! I think…

    I set up a 100% fresh Wp install, exported and imported my other site as an XML file, and installed WP-tree as the sole plugin:

    https://www.1manwebteam.com/

    Error appears as you can see – independent of other plugins, theme or CSS variables, category IDs etc

    SO at this point I am thinking it must be something about Dreamhost…? Ok so not really solved but I have eliminated most other variables here I think, so either it is this version of wordpress (2.71) or else it is the server environment itself (LAMP) that is causing this plugin to misfire

    Thread Starter rev-max

    (@rev-max)

    Hello

    Further update : SOmething about the process / procedure I described above seems to have fixed this at least partially

    Once I deleted test parent and subcategories, menu began to display again correctly

    Now instead 1st of subcategory being treated as parent of its siblings it seems that 1st <i>post</i> inside of last <i>subcategory</i> is being displayed as though it were “parent” of siblings posts

    So when you look at the unopened category or subcategories everything looks fine it is only when last subcategory is expanded that error is now seen

    so it seems as though error is not specific to any given category or indeed type of item (can also apply to a post) simply, <i>it must display incorrectly either for first subcategory or first post in last subcategory</i>, for example adding new subcategories with test posts at end of menu list will introduce problem for more recently added items but “cure” for all those above it.

    Odd!

    Thread Starter rev-max

    (@rev-max)

    Hi Ulf

    Many thanks for your kind reply

    Per your suggestions I have:

    1)turned off all plugins except for DP Tree
    2)Switched to default theme
    3)Created a new set of parent category/multiple subcategories for a new WP test menu

    The odd thing is that WP-tree is continuing to display the new menu in the same way – it looks right in the backend preview but on the front end the first category displays as though it were a parent category to its “siblings” once the true parent category is unfolded

    I am using Dreamhost so perhaps it is something about this host? not sure.

    Thread Starter rev-max

    (@rev-max)

    Getting warmer

    Turns out the plugin is

    – applying div id=dc1 to 1st item in menu
    – second item is inheriting that
    – and then third item is styled via div id=dc3

    So div id=dc2 is completely out of the mix – thus whatever the second item is in the WP d-tree widget will always display with the same indentation etc as the first item.

    Thread Starter rev-max

    (@rev-max)

    Using YSlow’s inspect mode, from what I can figure out, WP-dtree generates classes like so:

    div id=dc0, div id=dc1, div id=dc2, etc

    It seems like whats happening is that divid=dc1 is consistently being displayed as a parent category in the WP dtree sidebar menu, whether or not it actually is

    So if I actually do have a parent category as the second item in the Wp-Tree sidebar menu, then everything displays like its supposed to

    Its only when I use WP dtree to try to display navigation for a specific section consisting of a parent category with multiple subcategories underneath it, that the plug-in messes up and displays the first subcategory as a parent category

    Even though the menu does preview correctly in “settings”

    hmmm!

    Thread Starter rev-max

    (@rev-max)

    Hmmm,interesting

    Uninstalled and went back to version 3.0, that did not fix problem

    As a temporary “fix” (or at least, so it does not look amateur) I added an empty subcategory called “Introduction”” under the main category in the menu. That does not indent properly but the subcategories below it do, which is a slight improvement:

    Table of Contents
    open all | close all
    [-} Parent Category (37)
    Sub Category 1 (0)
        [+} Sub Category 2 (7)
        [+} Sub Category 3 (7)
        etc. 

    https://www.gnosticshock.com/category/illustrated-gnostic-myths/

    Still curious to know if anyone else has run into this. WP dtree is a fantastic plugin I’ve been using for over a year at least, how or why it suddenly started displaying the first subcategory under a parent as though it were another parent category on the same level i’m not sure but since this is such a great plugin I’d love to resolve so I can keep using.

    Thread Starter rev-max

    (@rev-max)

    Should add tht WP-Tree has been working perfectly through multiple versions for me.

    This is a new (to me) error which is not the result of a template or CSS change.

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