Forum Replies Created

Viewing 15 replies - 61 through 75 (of 80 total)
  • jabbamonkey

    (@jabbamonkey)

    I saw you posted this 10 months ago, but stumbled upon this searching for a solution to a problem that I’m having (not much activity and support lately).

    What query are you using to list the posts? There could be an error there (especially if the number of posts is set, or the pagination is restricted…)

    Are you using a custom template, with modified links?

    Thread Starter jabbamonkey

    (@jabbamonkey)

    Um, not sure how that will help.

    I don’t need to change the site URL (the site url is fine), I need the pagination to work for the page with the link structure: https://www.mywebsite.com/page/2/

    Thread Starter jabbamonkey

    (@jabbamonkey)

    And technically, the code isn’t invalid. Just not commonly used that way. If I just link the text

    <li><a href="">Category</a></li>

    Then the background image style of the li tag wont be a link. There is an icon in the background of the li tag, so it looks like an icon and then the text. With the code above, the icon isn’t clickable.

    With the code below, the icon AND the text would be clickable.

    <a href=""><li>Category</li></a>

    Is there a way to wp_list_categories WITHOUT it outputting the ‘li’ or the ‘a’ tag? Then I can add the link AND the list tag in html, and not have it automatically throw it in.

    Thread Starter jabbamonkey

    (@jabbamonkey)

    I just checked something else… So, I go to the page…
    /category/family/school-age/

    And I wrote this at the top of the page…

    if ( in_category('family') ) {
    	echo '<h3>IN family category</h3>';
    } else {
    	echo '<h3>NOT in family category</h3>';
    }

    And it is outputting… ‘NOT in family category’

    Can anyone explain why this is happening? It’s obviously IN the family category…

    Thread Starter jabbamonkey

    (@jabbamonkey)

    I thought it could be as simple as duplicating the plugin in another folder (i.e. calendar2) and then changing some of the variables in the
    calendar.php page…. I haven’t tried it yet, as I have a ton of other problems with my site now.

    Not sure if it will work…

    LINE 28

    // Enable internationalisation
    $plugin_dir = basename(dirname(__FILE__));
    load_plugin_textdomain( 'calendar2','wp-content/plugins/'.$plugin_dir, $plugin_dir);
    
    // Define the tables used in Calendar
    global $wpdb;
    define('WP_CALENDAR_TABLE', $wpdb->prefix . 'calendar2');
    define('WP_CALENDAR_CONFIG_TABLE', $wpdb->prefix . 'calendar2_config');
    define('WP_CALENDAR_CATEGORIES_TABLE', $wpdb->prefix . 'calendar2_categories');

    LINE 117

    if (function_exists('add_menu_page'))
         {
           add_menu_page(__('Calendar2','calendar'), __('Calendar2','calendar'), $allowed_group, 'calendar', 'edit_calendar');
         }

    Thread Starter jabbamonkey

    (@jabbamonkey)

    The code works on my page. The output of wp_list_categories is an itemized list of categories with the link INSIDE the list tag.

    I need the take the link outside of the list tag, and surround it around the list tag. I do this in straight HTML on another list and it works fine.

    Thread Starter jabbamonkey

    (@jabbamonkey)

    Ok… that’s the calendar plugin … I was able to change the styles in the plugin. I changed them to….

    .calendar-table table,.calendar-table tbody, .calendar-table tr, .calendar-table td {
    margin:0 !important;
    padding:0 !important;
    }

    This should cause the regular tables to be left alone, right? When I did this, nothing changed.

    Thread Starter jabbamonkey

    (@jabbamonkey)

    esmi,
    I have used firefox … the table styles aren’t hard coded … and I checked the main style sheet … but that doesn’t seem to have any issues.

    govpatel,
    Store plugin? I don’t understand what you mean. There is no store plugin. I have plugins for breadcrumbs, calendar, contact form, captcha, tinyMCE and a backup plugin. No Store plugin though.

    Thread Starter jabbamonkey

    (@jabbamonkey)

    Is this just a fundamental problem with WordPress? Is there no solution for this?

    Thread Starter jabbamonkey

    (@jabbamonkey)

    That could solve it. Then I wont have to worry about them adding things to the menu! Thanks!

    Thread Starter jabbamonkey

    (@jabbamonkey)

    I’m concerned about an administrator adding a new page, and it automatically appearing in the main navigation. They may just forget to add the new page to a parent page…

    So, I want to avoid using the exclude in the code (because I would have to edit the code every time they add a page). I also know there is a plugin that lets people EXCLUDE pages from navigation … but I’m trying to make the adminstration dummy-proof. (because they WILL just add pages everywhere).

    Oh well. I guess I will just have to live with the following….

    <?php wp_list_pages(‘sort_column=menu_order&depth=2&title_li=’ ); ?>

    It works, shows the two levels of navigation. I just need to be wary when an admin adds a new page.

    Thread Starter jabbamonkey

    (@jabbamonkey)

    Any help with this?

    Thread Starter jabbamonkey

    (@jabbamonkey)

    I’ve tried this… but it didn’t work:

    <?php $children = wp_list_pages('include=2,52,11,41,50,54&sort_column=menu_order&title_li='.$post->ID.'&echo=0' );
      if ($children) { ?>
      <ul id="navlist">
      <?php echo $children; ?>
      </ul>
    <?php } ?>

    It prints out “2” … and then the main nav are the subnav items (when I mouseover the 2, the main menu drops down). The main menu needs to print at the top level, and the subnav needs to drop down…

    Thread Starter jabbamonkey

    (@jabbamonkey)

    That looks helpful. I’ll check it out for the sidenav.

    At the moment, my topnav is currently hard coded into the template. Using the example that page that you sent, if I wanted to make the main nav driven by the CMS … how do I do the following….

    I want to choose which pages are listed in the main nav (because I dont want an admin user to add a random page to the site, and have it automatically appear in the top nav), and for THOSE main nav items, have them print out their children subnav items.

    So, to include pages I want in the main list, I would use the ‘include=5,9,23’ … and then to print the children I use the ‘title_li=&child_of=’. Correct?

    <?php
      $children = wp_list_pages('include=5,9,23&title_li=&child_of='.$post->ID.'&echo=0');
      if ($children) { ?>
      <ul>
      <?php echo $children; ?>
      </ul>
      <?php } ?>
    Thread Starter jabbamonkey

    (@jabbamonkey)

    Got it working. Thanks anyway…

Viewing 15 replies - 61 through 75 (of 80 total)