Register a title automatically with a relationship field

If you can grab your data early enough you can do this: function alter_title($t) { return ‘altered-title’; } add_filter(‘pre_post_title’,’alter_title’); add_filter(‘pre_post_name’,’alter_title’); That will change the title and the slug before the post is saved. Of course, you need to work out some logic for that function. As is, it changes all post/page/CPT names and slugs on … Read more

Rewriting a page driven by custom fields to populate a page dynamically, like posts

WP_Query is your friend. Combined with featured images, you should be able to do this as a page template with a WP_Query call and loop. This is the html for the top post at the moment: <li class=””> <a href=”http://dsi.sva.edu/cheryl-heller-named-in-top-100/”> <img src=”http://dsi.sva.edu/wp-content/uploads/2013/01/public-interest-design.jpg” width=”332px”> </a> <span><b><p style:=”” color:=”” #f15c25;=””><a href=”http://dsi.sva.edu/cheryl-heller-named-in-top-100/”>Cheryl Heller was named one of the … Read more

Stop header code from showing in category page?

You can achieve that by changing the conditional to if ( !is_home() && !is_archive() ) Also consider using if and else if. So your optimized code would be: <?php if ( !is_home() && !is_archive() ) { if ( get_post_type() == ‘pretty-little-liars’ ) { echo ‘<div id=”headerimg”><img src=”http://tv-cafe.com/wp-content/uploads/2013/01/pllbanner.png”></div>’; } else if ( get_post_type() == ‘revenge’ ) … Read more

Apply custom names for generic custom taxonomy name?

Yes, that’s certainly possible, but you wouldn’t override anything- instead you’d fetch and add the custom names when they’re registered. For a quick example, say you have an option that stores the names: $taxonomies = array( ‘ingredient_1’ => ‘Toppings’, ‘ingredient_2’ => ‘Sauce’ ); add_option( ‘my_tax_names’, $taxonomies ); Then when you register the taxonomies: $taxonomies = … Read more

How can I make a custom post type that loops pages in a new dashboard page, each single page is a new dashboard page (all within the back-end)?

WordPress isn’t built with your idea in mind. That being said, add_menu_page on the WordPress Codex shows how to create an admin top-level menu page, i.e., a menu item within the left column of the admin section. add_submenu_page shows how to create submenus of top-level menu items. You could create a plugin, and add menu/submenu … Read more