Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter archillez

    (@archillez)

    Here’s my code inserted in the template

    $categories = get_the_category ($post->ID);
    
    $includes = array();
    foreach ($categories as $c){$includes[]= $c->cat_ID;}
    asort($includes);
    
    $include="";
    foreach ($includes as $inc){
      if($include)$include .= ',';
      $include .= $inc;
    }
    
    $orderby      = 'slug';
    $show_count   = 1;      // 1 for yes, 0 for no
    $hierarchical = 1;      // 1 for yes, 0 for no
    $title_li = '';
    
    $args = array(
      'include'	 => $include,
      'orderby'      => $orderby,
      'show_count'   => $show_count,
      'hierarchical' => $hierarchical,
      'title_li'        => $title_li,
    );
    wp_list_categories ($args);

    I can see the category list but the hierarchy is not seen.

    Nevermind, it is because my post didn’t have the parent category checked.

    Thread Starter archillez

    (@archillez)

    Is this a bug?
    For certain long post published(over 7000 words in html, attempted close tags), the custom fields or any fields below the main post text box will disappear.

    Thread Starter archillez

    (@archillez)

    Thanks.
    But the problem is that I insert posts quite often, and I need to change the date again and again many times and fill in multiple tags & category every time.
    So I’m asking is there a simple way to modify the interface to add an “insert” action which can do the stuff for me (copying previous post’s tag & category, and fill in the date automatically like differ by 1 second)

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