Patrick Johanneson
Forum Replies Created
-
Forum: Hacks
In reply to: Overriding the css of a theme from a pluginMaybe I’m missing something, but the CSS file being loaded on that example site (flying-menu.css) doesn’t seem to have the styles you mention in it. There’s no
li:hover
in it, for instance.The only
:hover
I see is at the bottom, and it’s commented out.Forum: Fixing WordPress
In reply to: Plugin bulk update weirdnessThe issue was solely in the back end. I was unable to reproduce it on any other sites that I have upgraded lately, so I’m leaning toward it being something in a javascript file.
It’s a test server, and blocked by a firewall, so I unfortunately can’t provide a URL.
Marked as Resolved since I can’t reproduce.
Forum: Fixing WordPress
In reply to: Echo list of terms on taxonomy pageWhat about something like this:
(Note: I haven’t tested this code at all.)
// assuming your list of custom posts is $custom_posts $term_list = array(); // will end up as an array of term IDs foreach( $custom_posts as $cp ) { $terms = get_the_terms($cp->ID, $your_taxonomy_name); foreach( $terms as $t ){ if( !in_array( $t->term_id, $term_list ) ){ $term_list[] = $t->term_id; } } }
Then, to create your list in the sidebar:
$list = ''; foreach( $term_list as $term_id ){ $term = get_term( $term_id, $your_taxonomy_name ); $list .= "<li>" . $term->name . "</li>\n"; } echo("<ul>\n$list</ul>\n");
Or have I completely misunderstood what you’re looking to accomplish?
The problem stemmed from using
wp_tiny_mce
, apparently. Fixed now.Thanks, esmi!
I managed to get a copy of my production site set up in a test environment, and after disabling all the plugins and adding them back one by one, I have traced the issue to a plugin I wrote in-house. Debugging now, but it’s good to know where the issue comes from.
Forum: Fixing WordPress
In reply to: Can't FTP — function dl() missing in PHP 5.3I’m still having this issue — is there a solution? I’ve tried enabling
dl()
in the php.ini, but it looks like thedl()
function itself doesn’t exist in my installation of PHP 5.3.2.Any assistance would be gratefully accepted.
Forum: Themes and Templates
In reply to: [Menu] [Plugin: Menu] CMSThanks for the link. I tried it and… it just gets the current page and its children.
Back to programming. If I come up with a solution I’ll post the code here.
Forum: Themes and Templates
In reply to: [Menu] [Plugin: Menu] CMSI did. “depth” gives back entirely too much.
Sorry, I might have been less than clear in my original post.
What I have:
A site that looks like this:
Site Home Sibling Sibling child grandchild 1 gg-child grandchild 2 child grandchild 1 gg-child grandchild 2 child Sibling child grandchild 1 gg-child grandchild 2 child grandchild 1 gg-child grandchild 2 child Sibling . . .
What I want:
When I’m on the page “grandchild 1”, I want to see:
– its immediate children, if any
– its parent and its parent’s siblings
– the rest of its ancestors, and their siblingsLike so:
Site Home Sibling Sibling child child grandchild 1 gg-child grandchild 2 child Sibling Sibling
laid out according to menu_order.
Thanks!