syncbox
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: #loginform css – 2.5.1 issueI also am experiencing the cut-off top to submit buttons in IE6 in the login and lostpassword forms, like others have mentioned.
Has anyone logged this as an issue? Or is there some update to fix all of this?
Seems like someone would have tested in IE6?
Forum: Plugins
In reply to: […] Please help.you’ll like get more help if the subject line reflects what you are wanting.
Forum: Fixing WordPress
In reply to: [gallery] tag puts tons of white space at bottomThat is probably a side effect of using the overflow:hidden property
Are you using that in your CSS?
Forum: Everything else WordPress
In reply to: Great fix to stop spammersI find a simple “human” test works just fine… better than a captcha image. Requiring someone to answer one of a set of random questions, such as “what is the color of snow?” works well and definitely cuts the spam way down.
It’s sort of a price you pay for allowing comments. Another helpful trick to not allow ANY links at all. Much of the spam I’ve seen contains one or more links… it’s the reason behind spamming.
Forum: Plugins
In reply to: Pages & Subpages – Please helpThe simple way to do this is to build page templates, then you could include a different sidebar for each section and only use:
<?php if($post->post_parent) $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?>for the actual nav section for each particular include. So, for example, the sidebar for page 3 might look like (simple example)
page 1 (wp_list_pages(‘include=1’)
page 2 (wp_list_pages(‘include=2’)
page 3 (wp_list_pages(‘include=3’)
(include code for subpages here)
page 4 (wp_list_pages(‘include=4’)does that make sense? The code above shows the child pages even if on a child page and there’s no conditionals required to manage WHICH of the main buttons has a sub-nav because only ONE is available in any sidebar. The choice of page template controls which sidebar has it.
HTH
Forum: Fixing WordPress
In reply to: if a specific key exists, change the output in get_pagesAs a follow-up, I am using the Excerpt Editor plugin (creates excerpts for pages with a nice admin page) and this code to pull “client pages” (where I can show project slideshows if desired or just some text about that client):
<?php $pages = (get_pages("child_of=18&sort_column=post_title&title_li=")); foreach ($pages as $page) { echo '<li>'.$page->post_excerpt.'</li>'; } ?>The excerpt then can either show the client’s name linked to a project page or just the client’s name (where there is project page, but no projects to show).
By generating the list of pages FROM actual child page, I can use the default published or draft status of said project page to control whether a client lists or not as I don’t always want all clients to show. I don’t have to delete anything or hardcode the ids of said pages to get them to list.
As a bonus, I am showing these in 4 columns, so I’ve set up 4 parent pages for all clients (each is a range alphabetically)
It’s working.
Forum: Fixing WordPress
In reply to: if a specific key exists, change the output in get_pagesnevermind. I found another way to do this by using the Excerpt plugin to create a linked page title or not linked page title to a page…
not ideal, but easy to manage and works.
Now, if I can just get all that hair and blood off of my computer keyboard….
Forum: Fixing WordPress
In reply to: if a specific key exists, change the output in get_pagesthanks… but the problem is that I don’t want the value (so that whole thing introduces a lot of other stuff)
what I am looking for is a way to say — in the context of my code above, where I am going to output a list of pages — if said key (‘linkme’) exists (for $page), echo this else (if it doesn’t) echo that.
my above code will write out the pages using the formatting around the link and title. I’ve tested it.
What I don’t know is A) how to check if a specific key exists (for each of the pages) and B) where, in my working code, to insert it.
I get that I somehow need to test for the existence of the key (linkme) but don’t know how to “remember” that for each specific page while it completes the foreach statement. Or, perhaps the test for the key happens after that statement… I don’t know.
I totally appreciate your guidance to the other post, but it just introduces so many other things AND it is focusing on outputting the VALUE rather than the state of existence?
Forum: Fixing WordPress
In reply to: wp_list_pages >> Limit return pages to specific author?filosofo… enlightening…. is there a list somewhere that shows what else can be used like this? For example, I want to GET a custom field (key=BDP-clients) from all the child pages (published) of a certain page…
This would be get_pages() rather than wp_list_pages(), right?
Forum: Fixing WordPress
In reply to: Add a footer to every post in the feedyou can use the_category(); as in:
<p class="postfooter">Do you like this post? Search others in <?php the_category(', ') ?>.</p>then use the class to style how this appears visually. Should work just fine. The comma is what would appear between categories IF the post belonged to more than one category.
As for searching for it, you’d wrap a link around the category… hmmm… but this would return all posts in whichever one was clicked… I am sure you can come up with a js script to dynamically write the name of the category into the input#s field of the searchform with a little effort. I’d do it, but I really should be working 😉
JS gurus out there? I’m just a hack.
Forum: Fixing WordPress
In reply to: “nbsp;” doesn’t workI’d use
since WordPress is xhtml and all tags should be lowercase.The bigger question is why you want hard line breaks. That would help determine how to achieve them without using breaks this way — typically not a good idea unless you have a good reason to do it.
If you simply don’t like the space between paragraphs, edit the style.css file to change the margins (top and bottom or both) for whatever rule that affects the paragraphs, probably in .entry p or something similar.
It’s almost always a good idea to use a 0 margin-top and set the spacing for the margin-bottom below paragraphs. Note that in modern browsers, vertical margins collapse in favor of the larger value.
If you still need
put it between tags, as in<p> </p>HTH
CaseyForum: Fixing WordPress
In reply to: Search form won’t show up in sidebar – am completely mystified!Is there a searchform.php file on the new server in your theme folder?
Forum: Fixing WordPress
In reply to: Jumpy linksin the style.css file?
Forum: Fixing WordPress
In reply to: Show child pages next to child you visitthe latest version of WP does this just fine… (2.5x)
Read up on it here (scroll down to “List subpages even if on a subpage”):http://codex.ww.wp.xz.cn/wp_list_pages
I am using this in a site where I have a depth=1 level list of pages as main navigation on the right in a sidebar, but using a horizonal list below the page title on pages where the current page has children.Here’s the code:
<?php if($post->post_parent) $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?>edited:
sorry, to finish up, to get just the other 3 to show, you *could* set the current_page_item style to display in a color that simply makes it disappear or makes it display none or something… basically using CSS to accomplish the “apparent” exclude rather than trying to hack a working dynamically generated nav.
hthForum: Fixing WordPress
In reply to: the_search_query()well, how about posting the answer here?