tomhal
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Path to sidebar2 & sidebar3I 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
Forum: Themes and Templates
In reply to: edit blix navigation in php for tier 3 pages?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.
Forum: Themes and Templates
In reply to: Blix with CSS DropdownsThis 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
Forum: Themes and Templates
In reply to: Blix with CSS DropdownsThats 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