walterego
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Border around main divDropping the width of #content will only make the space in the center between #content and #sidebar bigger.
But anyway, can anybody tell me what I’m missing? The way I see it, there’s nothing wrong with the CSS or XHTML here.
Forum: Themes and Templates
In reply to: Border around main divTo clarify even more, here’s what the basic structure should be like:
<body> <div id="main" style="width:725px; margin: 0 auto; border:#000000 solid 2px;"> <div id="content" style="float:right; width: 515px;">hello content </div> <div id="sidebar" style="float:left; width:200px;">hello sidebar </div> </div> </body>
This one doesn’t do what I want either (wrapping the border around the content and sidebar div).
Forum: Themes and Templates
In reply to: Border around main divWell, the theme can’t be seen only yet. I’m designing it on a local testing server. The theme so far can be downloaded from here.
Forum: Plugins
In reply to: Custom field, filtering and iconsYou’re probably better off trying to get help at the website of the custom field GUI. Also, you may want to look at get custom field values.
Forum: Themes and Templates
In reply to: Border around main divAnyone?
Forum: Plugins
In reply to: How to post concerts?I use RC Custom Field GUI and Get Custom Field Values for this kind of stuff.
Forum: Fixing WordPress
In reply to: Integrating WordPress into existing pages?About Search engine friendliness, you’ll have to google. If you’re going to use an iframe just make a theme that has only the content you want on it (so no sidebar, no header, no nothing).
About the php include, I don’t know. You’d have to include the wordpress/index.php file i guess, and then once again use a theme that has only the content you want.
Forum: Fixing WordPress
In reply to: Integrating WordPress into existing pages?Why not just port the site to WordPress? It works excellent as a CMS as well.
Other solution would maybe be to use an iframe?
Forum: Fixing WordPress
In reply to: Is this possible to do with WordPress?You can future timestamp posts, look under Post Timestamp in your write post screen.
Forum: Fixing WordPress
In reply to: Maximum number of page parents?Ok, nevermind…
Turns out the pages were in the list, the list just had a scrollbar I couldn’t see because it was outside of the screen. ??
Forum: Fixing WordPress
In reply to: Maximum number of page parents?Good to know: the page does appear in the wp_list_pages list.
Forum: Plugins
In reply to: Page Navigationdriz, if you really want to edit the core, the file is wp-includes/classes.php (line 490). However, editing it is completely unnecessary. li’s having classes on them is not a bad thing or something, and li’s having a double class on them isn’t either. Just change the behaviour/appearance of the li’s in your css.
Forum: Fixing WordPress
In reply to: Problem with “current_page_item” navigation highlightingHere’s one way to go about, it’s hardcoded but at least it’s something. On your index.php file change the section you use for listing you pages to:
<ul> <?php wp_list_pages('sort_column=menu_order&title_li=&depth=1&exclude=THE REPLACE THIS WITH THE ID OF YOUR POSTS PAGE'); ?> <li class="page_item current_page_item"><a href="LINK TO YOUR POSTS PAGE" title="Weblog">Blog</a></li> </ul>
You can also make this change on your single posts page and other blog pages, this way the link to your posts page is always highlighted when looking at the blog
Don’t forget to replace THE TEXT IN CAPS ??
Forum: Plugins
In reply to: Dynamically generate a div with a list of children or siblingsActually, this is better:
<?php if($post->post_parent) { // page is a child echo '<div id="sidebar">' . "\n\t\t\t\t\t"; echo "<ul>\n\t\t\t\t\t\t"; wp_list_pages('sort_column=menu_order&title_li=&child_of='.$post->post_parent); echo "<ul>\n\t\t\t\t\t\t"; echo "\t\t\t\t</div>"; } if(wp_list_pages("child_of=".$post->ID."&echo=0")) { // page has children echo '<div id="sidebar">' . "\n\t\t\t\t\t"; echo "<ul>\n\t\t\t\t\t\t"; wp_list_pages('sort_column=menu_order&title_li=&child_of='.$post->ID); echo "\n\t\t\t\t\t</ul>\n"; echo "\t\t\t\t</div>"; } ?>
Forum: Plugins
In reply to: Dynamically generate a div with a list of children or siblingsI was afraid this might happen. Somehow it helps to type down your thoughts. The solution is this:
<?php if(wp_list_pages("child_of=".$post->ID."&echo=0")) { // page has children ?> <div id="sidebar"> <ul> <?php wp_list_pages('sort_column=menu_order&title_li= &child_of='.$post->ID); ?> </ul> </div> <?php } ?>