12,182 reputation
1734
bio website
location England, United Kingdom
age 25
visits member for 3 years, 5 months
seen Apr 17 at 17:43

♥ Joy Division, Made In Britain, WordPress, Sunny Afternoons


Apr
17
comment Multiple Conditions for Child Page Title
How deep is your page hierarchy? i.e. are their children who are also parents?
Apr
17
comment 3.9 breaks multisite
Are you positive you've tried a vanilla install? i.e. no custom themes, plugins, MU plugins etc. Otherwise this is a massive bug and I'm surprised it creeped into release!
Apr
17
comment Getting post content within wp_nav_walker
I think you want $item->object_id - $item->ID is the ID of the menu object.
Apr
17
answered Multiple Conditions for Child Page Title
Apr
17
comment Multiple Conditions for Child Page Title
But there is. If there aren't any pages, $pages will indeed be empty. And you can use the same arguments with wp_dropdown_pages too. Anyway, just what I would do, you're not wrong either.
Apr
17
comment Multiple Conditions for Child Page Title
I would use if ( $pages = wp_list_pages( array( 'child_of' => $post->ID, 'echo' => false ) ) ) and then just echo $pages - less hits on the database :)
Apr
17
comment Wordpress function/template tag to get first n words of the content
I would still strongly advise that you use it - it might be working now, but eventually you'll end up with malformed HTML.
Apr
16
comment Wordpress function/template tag to get first n words of the content
@JaromírtheGreenhorn If you'd like to use this on get_the_content(), you'll need to strip HTML beforehand (see revision).
Apr
16
revised Wordpress function/template tag to get first n words of the content
Suggested edit "get_the_content()" is misleading - won't account for HTML etc. More code should be provided, such as strip_tags etc.
Apr
16
answered Wordpress function/template tag to get first n words of the content
Apr
16
answered display post tags on single.php inside loop
Apr
16
answered When to use wp_schedule_single_event for async / non-blocking processes?
Apr
16
answered When is get_currentuserinfo() needed?
Apr
16
revised Create Logout Link Wordpress Admin Menu
added 41 characters in body
Apr
16
comment Create Logout Link Wordpress Admin Menu
Just add 'parent' => 'top-secondary' (see revised answer).
Apr
16
answered Create Logout Link Wordpress Admin Menu
Apr
16
comment Title Page reverting to homepage
Have you tried switching to a default theme & disabling all plugins? If so, does the problem still occur? If not, revert them back one by one until you find the culprit.
Apr
16
comment Organize media uploads in folders - I have a physical access to (my) server
What kind of directory structure are you after?
Apr
15
revised Orderby with menu_order and title
deleted 1 characters in body
Apr
15
comment One login for 2 websites on different platforms
This is a very open-ended question - without more specifity, or details of what you've tried so far, it's unlikely anyone will be able to help you.