Echo the Last Child Taxonomy only (not parents)?
Try something like this: $terms_as_text = get_the_term_list( $post->ID, ‘location’, ”, ‘, ‘, ” ) ; $terms_arr = explode(‘some-delimiter’,$terms_as_text); echo end($terms_arr);
Try something like this: $terms_as_text = get_the_term_list( $post->ID, ‘location’, ”, ‘, ‘, ” ) ; $terms_arr = explode(‘some-delimiter’,$terms_as_text); echo end($terms_arr);
You’re looking for a way to style the backend. On one level, you could just create a custom admin theme (Codex description). On another level, you could use a plugin like White Label CMS to completely re-brand WordPress.
The three easiest options: Limit users’ user role to Author or below Change the $cap parameter from ‘edit_theme_options’ to ‘edit_options’ in the add_theme_page() call that adds the settings page Remove the settings page entirely, by removing the callback that adds the settings page. e.g. if the Theme uses: function theme_slug_add_settings_page() { add_theme_page( $args ); } … Read more
Open the wp-config file and replace the line that reads define(‘WP_DEBUG’, false); with: if ( isset($_GET[‘debug’]) && $_GET[‘debug’] == ‘1’ ) { define(‘WP_DEBUG’, true); } elseif ( isset($_GET[‘debug’]) && $_GET[‘debug’] == ‘2’ ) { define(‘WP_DEBUG’, true); define(‘WP_DEBUG_DISPLAY’, true); } elseif ( isset($_GET[‘debug’]) && $_GET[‘debug’] == ‘3’ ) { define(‘WP_DEBUG’, true); define(‘WP_DEBUG_LOG’, true); } After adding … Read more
This needs to be 2 queries, one to get the posts most recently commented like: $q = “SELECT wp_comments.comment_post_id, wp_posts.* FROM wp_comments LEFT JOIN wp_posts ON wp_comments.comment_post_id = wp_posts.ID ORDER by wp_comments.comment_date DESC”; And one to get the most 10 recent posts by add or edit: $q = “SELECT * FROM wp_posts WHERE post_type=”post” OR … Read more
not really sure what your point, but you can use body class to customize background images ( AFAIK twitter use this method too ). for example if you have two user : x and y you can customize the author page : yoursite.com/author/x yoursite.com/author/y with css like these .author-x {background:red} .author-y {background:blue}
There are lots of plugins to do this. It sounds like you’re looking for JetPack’s rather new comment module. There are also powerful commenting plugins like Disqus and LiveFyre.
If you want to change the logo, you could hook into login_head and output css that replaces the default logo. This goes into your functions.php. function my_custom_login_logo() { // as below or link to an external .css-file echo ‘<style type=”text/css”> div#login h1 a { background-image:url(‘urltoyourlogo.png’) } </style>’; } add_action(‘login_head’, ‘my_custom_login_logo’);
I think a combination of two techniques will get you all the way there. 1. Shortcodes It’s really easy to use shortcodes to wrap various content in a <div>/<span>/<section>. Take a look at the Shortcode API. Then you could take something like this: [tabs] [tab title=”Tab 1″]The tab #1 content[/tab] [tab title=”Another Tab”]The tab #2 … Read more
The core of WordPress will not touch your .htaccess file outside the comments. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Plugins such as WP Super Cache might but I’ve never experienced any loss of personal changes. As to your … Read more