readydesigns
Forum Replies Created
-
To add the excerpt feature to pages (assuming it isn’t showing under “Screen Options“), add the following code to your functions.php file.
//Add Excerpts to Pages add_action('init', 'yourprefix_add_page_excerpt_support'); function yourprefix_add_page_excerpt_support() { add_post_type_support( 'page', 'excerpt' ); }
Functions.php is found in “wp-content\themes\[your-currently-active-theme]\”.
To wadsworth2,
For custom post types, you need to enable the features when you register them. Look here. Look specifically for the “supports” array, where you’ll add “excerpt” to the list of supported features. You’ll be doing something along these lines:
register_post_type( 'prefix_yourposttype', array( 'labels' => array( 'name' => __( 'Your Post Types' ), 'singular_name' => __( 'Your Post Type' ) ), 'supports' => array( 'title', 'editor', 'excerpt' ), 'public' => true, 'has_archive' => true, 'menu_position' => 20 ) );
Alternatively, you can also use add_post_type_support().
I hope that helps!
Forum: Themes and Templates
In reply to: Create Categories AutomaticallyYes, use wp_insert_term in your functions.php file as explained here.
Forum: Fixing WordPress
In reply to: Categories Missing from Admin, No Known Precipitating CauseLeave a number, or something static, at the beginning of your permalink string and you’ll never have any sort of problems. But if you really MUST [start your permalink with a non-number], then keep your number of Pages low. Don’t try it when you have more than, say, 30-50 Pages.
Thank you, Esmi! I had no idea.
Forum: Fixing WordPress
In reply to: Categories Missing from Admin, No Known Precipitating CauseThank you for the reply. Yes, when I made a local copy only Hello Dolly and Akismet remained. …However, I just realized the problem. The issue is nonexistent. My client uses Pages exclusively, never making Posts, and I just realized this very moment that categories don’t apply to Pages… Wow, that’s embarrassing. I guess I’d never had cause to notice on my other sites, and I’d never even opened up the Posts sub-menu on his site to see them sitting happily there. Sorry to waste your time.
In that case I may as well ask… is there a way to make categories apply to Pages as well, besides creating a custom taxonomy?
And while I’m on the subject, does anyone know whether there is any potential issue with his site having hundreds of Pages instead of Posts? (Or should I make a new thread for that?)