Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Hi,
    I am unable to delete my previous comment but am realizing I don’t need to ask it anymore so now am typing something else.

    Thanks and have a great day!

    • This reply was modified 8 years, 5 months ago by lifeleavesscars. Reason: I'm stupid
    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    Thanks so much for the detailed help! I appreciate it very much.

    The design is custom and at least six years old which explains the dated code.

    I’ll be sure to use your tips when updating the site.

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    Ok, so it’s not letting me paste my header code, Trisha.
    Here’s a pastebin link. https://pastebin.com/FJbRXtZs

    Thanks for offering your help!

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    Why can’t I see my reply?

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    Correct, disabling all plugins did not correct the problem but once I changed to the 2014 theme the About page issue was fixed.

    I agree, this had to be an issue with the theme (which was created some years ago along with the About page template).
    It looks like I’ll be staring at my window and some dated code for a bit longer. I’ll take your advice on those walks once the rain clears!

    Thanks for all your help.

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    Sorry, never refreshed the page before replying.
    Thanks for all the follow ups! Really appreciate it!

    Yes, the About page did work. Up until when, I am not sure.
    I did deactivate all plugins. Nothing.
    When activating the 2014 theme the About page does work. The layout is pretty wonky but I’m sure that’s because I need to work with the menus, but short answer- yes. About page does work.
    Also, I’d love to show this to the designer but from what I’m told he is no longer in business and that is not an option.

    On a side note, the current menu is not laid out through the wp menu but within header.php

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    How did the page lose its HTML bits? That’s exactly what I’m wondering, Randy!
    And what’s even more strange is that deleting the old About page and creating a new one didn’t make any difference. That led me to wonder if it was the custom page template, so I set the page back to the default template. No change.

    Thanks for the help. I’m sure there’s an answer somewhere, but for now I’m just gonna sit here and stare out the window for a bit. It won’t help but it can’t hurt. O_o

    @tom Davis

    Thanks! Great fix! The mobile display looks great now and I’m more than happy.

    Really appreciate the help. Thanks again.

    I second this.
    I love my oxygen themed site and the mobile layout needs some help. I have narrow (160×600) widgets stacked on top of posts on the homepage, and the single post view is just as bad.
    I’d love a cleaned up mobile view where the sidebars are pushed to the bottom or better blended into the content. Otherwise this theme is great for my needs.

    Any word on this? It looks good on the desktop but it throws off everything when viewing the page on a mobile device.

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    This is really helpful, shadez. Thanks.

    I am afraid I am new at working with this sort of code however and am having some difficulty figuring out what to edit.

    <?php
    wp_reset_query();
    if(is_single()) :
      $catts = '';
      $cats = get_the_category($post->ID); // get all post's categories
      if($cats) : foreach($cats as $cat) :
        $categories = get_categories( 'child_of=' . $cat->term_id ); // get child of category
          if($categories) : foreach($categories as $category) :
          $catts[] = $category->term_id; // collect child category id in array
          endforeach; endif;
        endforeach; endif;
      if($catts) :
      $catts = array_unique($catts); // remove double category id
      sort($catts); // sort asc
      $kitten = implode(',',$catts); // turn into string for the query
        query_posts('cat=' . $kitten . '&posts_per_page=-1' );
        if(have_posts()) : while(have_posts()) : the_post();
        the_title(); echo '<br />'; // put here what you want to show
        endwhile; endif; // end of the loop
      endif;
    endif; // end if(is_single())
    ?>

    Here’s the code you gave me. All the areas marked “kitten” I am assuming are for a category named “Kitten” and I would have to change this to my category name? Also, if I am trying to use this code for the two pages, do I list both my categories here in the same string? (region and country)?

    Do I remove this line of code? : $cats = get_the_category($post->ID); // get all post’s categories

    Do I add my categories here? : $categories = get_categories( ‘child_of=’ after the equals sign? Add them both separated by a comma?

    I know I’m asking a lot from you but it seems you know exactly what I am trying to accomplish and I appreciate your help. I am just having some trouble working with this code. Thanks!

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    Thanks shadez.

    That’s exactly what I did. Unfortunately it doesn’t allow for any different style of display on the new pages itself.

    I have posts about London, England and Athens, Greece and Chicago, Illinois for example. I would of course have to connect them to the category “city,” “region” and “country” so the only thing that happens is all the posts show up on all the pages the exact same way. Each page basically looks the same.

    I want a way to have all the posts GROUPED on each page. The first posts listed when on the region page will all be from the first region in alphabetical order (let’s just say Central America because I don’t feel like thinking ;). Then you’d see all the posts from North America together, and then the next. If you click on country, I want all the posts from Greece grouped together and all the posts from Italy grouped together. City is the only page that will display like a normal page, populated in alphabetical order by post title.

    I have no idea if this is possible. I am hoping someone can get me started if so or offer me a similar solution. Thanks.

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    Thanks!

    I have a follow up. Starting a new thread! : )

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    Thanks for replying, A.B.M.

    The 15 options all have values that are identical to their labels in my checkbox group. For example, if the labels say “rock,” “paper,” scissor,” that’s what the values say as well.

    I did fix the original problem that I started this thread with by putting the number 20 in for the first value field.

    I guess I’m screwing things up by not putting numbers in the value boxes beside the labels? I actually can’t make heads or tails of what this is doing which is what my problem is… If I were able to make more sense of it I’m sure I wouldn’t be banging things around like I am.

    Never mind. I figured it out. ; )

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