Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter tomhal

    (@tomhal)

    I tried but it didn’t do anything but throw new errors :”..failed to open stream: No such file or directory…”

    I suspect that php get_sidebar3() could work, but I don’t know where or how I can define sidebar3 as a function?

    php get_subpage works fine, but my two other selfmade sidebars (sidebar2 & sidebar3) isn’t defined I think!??!

    ‘:)tom

    I’ve been looking for that second level solution you have made for weeks now. A huge “thank you” awaiting if you post your accomplishment.

    Thread Starter tomhal

    (@tomhal)

    This is the BX_get_pages function that is refered to in the code above:
    /**
    * Function BX_get_pages
    * ------------------------------------------------------
    * Returns the following of all WP pages:
    * ID, title, name, (content)
    *
    * $withcontent specifies if the page's content will
    * also be returned
    */
    function BX_get_pages($with_content = '')
    {
    global $wpdb;
    $query = "SELECT ID, post_title, post_name FROM " . $wpdb->posts . " WHERE post_status='static' ORDER BY menu_order ASC";
    if ($with_content == "with_content") {
    $query = "SELECT ID, post_title,post_name, post_content FROM " . $wpdb->posts . " WHERE post_status='static' ORDER BY menu_order ASC";
    }
    return $wpdb->get_results($query);
    }

    I’m not sure if it will help understanding my question.

    But the bottom line is that I want to use this function and be able to get a result similar to this: https://www.alistapart.com/d/hybrid/hybrid-4.html

    :)tom

    Thread Starter tomhal

    (@tomhal)

    Thats good news about JavaScript, but Blix uses this code to display registred pages in WordPress:

    <div id="navigation">
    <ul>
    <li<?php if (is_home()) echo " class=\"selected\""; ?>><a href="<?php bloginfo('url'); ?>">Home</a></li>
    <?php
    $pages = BX_get_pages();
    if ($pages) {
    foreach ($pages as $page) {
    $page_id = $page->ID;

    ……[more]

    How do I join the tags from the AListApart(which are very simple tags) into this code from Blix?

    Trying to keep the system as flexible as possible, but if I hardcode the links as done in the example from AListApart I loose that flexibility.

    Thanx in advance for any reply.

    ‘:)tom

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