ben_allison
Forum Replies Created
-
Forum: Plugins
In reply to: 3.3: Hide dashboard welcome panel?You’re a rockstar my friend!
Forum: Plugins
In reply to: 3.3: Hide dashboard welcome panel?So Andrew, is it possible?
Forum: Plugins
In reply to: 3.3: Hide dashboard welcome panel?Rolling out an MU installation.
Re-skinning WP’s admin for specialized CMS.
Wanting to replace it with my own welcome screen with site-specific instructions.
Don’t get me wrong, it’s a wonderful, beautiful panel! But removing it or replacing it is a must for plenty of CMS roll outs.
Thanks Andrew!
Forum: Plugins
In reply to: 3.3: Hide dashboard welcome panel?I looked everywhere… I expected to find similar meta box hooks as with all other dashboard widgets, but it doesn’t appear to be the case…. 🙁 I really don’t want to have to resort to hiding it with CSS or having to muck with the user’s meta data.
Forum: Plugins
In reply to: 3.3: Hide dashboard welcome panel?bueller?
[No bumping, thank you.]
Forum: Fixing WordPress
In reply to: Categories SPECIFIC to a custom post typeTurns out, making a taxonomy hierarchical does what i want.
Forum: Plugins
In reply to: [Rename Media] Rename Media bugAnyone?
Forum: Plugins
In reply to: Create a new page when a user registersI figured it out. This goes in functions.php (or a plugin if you like). It will create a post (or any custom post-type you’ve defined) and makes the posts’s title the same as the user’s name.
/* CREATE NEW POST WITH USER, GIVE POST USER'S NAME*/ function my_create_page($user_id){ $the_user = get_userdata($user_id); $new_user_name = $the_user->user_login; $my_post = array(); $my_post['post_title'] = $new_user_name; $my_post['post_type'] = 'post'; $my_post['post_content'] = ''; $my_post['post_status'] = 'publish'; wp_insert_post( $my_post ); } add_action('user_register', 'my_create_page');Forum: Plugins
In reply to: Create a new page when a user registersAnyone?
Same for me. Posts, fine. Pages, no go.
Forum: Plugins
In reply to: Help with add_post_meta…Ok, so I had to do the following:
global $post; $yeye = get_post_meta( $post->ID, 'routine_selection', true); echo $yeye;Thanks team.
Forum: Plugins
In reply to: Help with add_post_meta…Ok, I realized the plugin is 100% storing the info… it’m just not able to retrieve it…
The following code works when viewing the published page, but not within the admin panel; why?
$yeye = get_post_meta( $post_id, 'routine_selection' ); echo $yeye; }Forum: Themes and Templates
In reply to: Page title changes when using multiple loops?lol
THANKS EVERYONE!
I found the answer. I had to reset the queue, to make sure it was dead.
<?php wp_reset_query(); ?>This goes for other things too, like if you’re calling a post_thumbnail for the page after a have a loop that is collecting posts. The post_thumbnail for the last image will be called instead, unless you reset the query.
Forum: Themes and Templates
In reply to: Page title changes when using multiple loops?The problem even happens when using one loop on a page, but where the the_title tags comes well after the end of the loop, and this time, I’m using a secondary loop.
<?php $childProjects = new WP_Query(); $childProjects->query('post_type=pagepost_parent='.$post->ID); ?> <?php while ($childProjects->have_posts()) : $childProjects->the_post(); ?> <li> <?php get_the_image( array('default_size' => 'full', 'link_to_post' => false) ); ?> </li> <?php endwhile;?> <h1><?php the_title(); ?></h1>Forum: Themes and Templates
In reply to: Page title changes when using multiple loops?Bump for an answer!