ayb1
Forum Replies Created
-
Forum: Your WordPress
In reply to: Customized WordPress 1.5 SiteBelieve it or not, I started with the WordPress ‘Classic’ theme and customized the RSS myself. The tabs at the top are using internal WP functions and CSS. The second level of menu items (children) is adapted from that; the second tier of tabs is something I had to code myself in PHP/MySQL because there were no WP functions to establish parent/child relationships and highlight the specific tab that was the child. (Hence the code isn’t quite pretty, and includes many calls directly to my database to determine if the page is a child or has a child, etc.)
–AlexForum: Your WordPress
In reply to: Customized WordPress 1.5 SiteThe XHTML was all valid until I added the feedburner logo/link– it is flagging as invalid because of an ampersand in the link. I just recognized today that it is no longer valid, and am working to sort that out.
Forum: Your WordPress
In reply to: Customized WordPress 1.5 SiteThanks! I have found that sometimes the wrapper is a bit funny with IE (looks fine on firefox).. I’m sure there’s just an inconsistency in the dimensions of the CSS or something..
–AlexForum: Fixing WordPress
In reply to: How to list the current page’s children?Adi:
Thanks. I have taken care of it.
Appreciate all of your help..
–AlexForum: Fixing WordPress
In reply to: How to list the current page’s children?Adi:
I appreciate your help. I wasn’t able to load your web site, but I got the same code working on mine. Thanks.The problem is that once I select a child page, the list of other child pages goes away.
I think there needs to be one more segment of code:
if (($wp_query->is_page && !is_home()) && (the page is a child page)) {
1. determine the parent page
2. display the parent pages, highlighting the parent of the current page
3. display the row of child pages, highlighting the one that is selected
}Forum: Fixing WordPress
In reply to: How to list the current page’s children?It seems like the only way I will get this flawlessly working is to just scrap everything and write my own version of wp_list_pages. Although things work so far, when a child page is selected the menu reloads and reflects as if nothing were selected.
Does anyone have any thoughts? Has anyone written their own wp_list_pages type function?
Forum: Fixing WordPress
In reply to: How to list the current page’s children?Adi:
Thank you! I appreciate your help.. now I am 99% of the way there! The only one thing I need to do is ensure the submenu displays once a child page has been selected.. to display the other child pages..
–AlexForum: Fixing WordPress
In reply to: How to list the current page’s children?Does anyone have any ideas for this?
Forum: Requests and Feedback
In reply to: Offer Users Their Own Blog?Couldn’t you just do separate installs and give them each a directory on your main server? Why would you need a “multi-user” version?
Forum: Requests and Feedback
In reply to: Spammer circumventing spamwordsSpam Karma is too conservative. I’ve tried to make a comment three different times on a WP blog and Spam Karma won’t let me do it. WTF?
Forum: Your WordPress
In reply to: Viral blog marketing.. building a community to advertise your site?I’m down with it. I’m working on 4-6 wordpress-based sites now..
Forum: Fixing WordPress
In reply to: How to list the current page’s children?I appreciate your help, but its just not doing what I want.
Right now my main horizontal menu lists “Home” and all of my other main parent pages.
What I’m trying to do is:
(1) If the user is not on the HOME page, determine if the page has child pages
(2) create another bar below it so the user can choose from the child pagesI thought there would be an easy way to do this that would allow any page to have as many “descendant” levels as possible, but there doesn’t seem to be an easy way.
Forum: Fixing WordPress
In reply to: How to list the current page’s children?Does the function the_id() work for pages the same as posts?
The text of the codex for the_id() makes it seem like it is more for posts.
Forum: Fixing WordPress
In reply to: How to list the current page’s children?Also, is there a function like has_children() or something that will return a “true” if my page has children?
Something that I could use to do:
if (has_children()) {
[html/css code]
[php code for wp_list_pages for child_of current page]
}Forum: Fixing WordPress
In reply to: How to list the current page’s children?Sorry Adi, but now I’m getting:
Warning: Invalid argument supplied for foreach() in /homepages/35/d93996604/htdocs/service/wp-includes/template-functions-post.php on line 357