title: customize wordpress database error page

text: **UPDATE** Initially I suspected this was related to the Wordpress framework I'm using (Genesis) or to my child theme functionality, but turns out that's not the case as I was able to get this to work in a test environment running on the same framework and child theme. Possibly this is related to the caching plugin I'm using, W3 Total Cache. If this plugin is not active, then the custom db-error.php file is picked up. To rephrase my question, has anyone run into this issue with caching plugins being active? **ORIGINAL QUESTION** Has anyone successfully been able to replace the default Wordpress database error page with a custom one? I tried this (add db-error.php under wp-content), but I can't get it to work for some reason: http://css-tricks.com/snippets/wordpress/custom-database- error-page/


title: Get post_type by term_id

text: Is it possible to find out which post_type a term_id belongs to? I have this bit of code to try and collect all possible categories into an array, but I would like to add the post type each category belongs to into the array.               $post_catgegories_objects = get_categories(         array(             'type'       => 'post',             'orderby'    => 'name',             'hide_empty' => '0',         )     );          foreach ( $post_catgegories_objects as $cat ) {         $post_catgegories[] = array(             $cat->term_id,             $cat->name,             $cat->slug,         );     }          // var_dump($post_type);     // exit;          $taxonomies = get_taxonomies(         array(             'public'   => true,             '_builtin' => false,         )     );          foreach ( $taxonomies as $key => $taxonomy ) {         if ( stristr( $taxonomy, 'cat' ) ) {             $tax_terms = get_terms( $taxonomy );                  // print_r($tax_terms);             // exit;                  foreach ( $tax_terms as $term ) {                 $cpt_categegories[] = array(                     $term->term_id,                     $term->name,                     $term->slug,                 );             }         }     }          $all_categories = array_merge( $post_catgegories, $cpt_categegories );          print_r( $all_categories );     exit;


title: Function to limit the number of posts in taxonomy.php

text: How can I change the post limit for taxonomy.php from that which is defined in the settings page? Currently I have 10 posts displaying per page, which is fine for the blog part of my site, but I want to show all posts when the user is on taxonomy.php, is there a function that can achieve this?


title: How do i hide the <h2> if the <h1> appears

text: I'm working on a WordPress site that automatically displays an `h2` on the page as what the page/post is titled. I want to manually create `h1` for some pages and have the `h2` to be hidden if the `h1` appears. Is there a way to do that?


title: Post 2 Post: Getting connected 'person' from post author

text: I am using the amazing P2P plugin (many thanks Scribu!) and I am having an issue that is probably right in front of my face but I just can't see. I have a 'People' as CPT and I have connected that to 'Users' with a 'Person_to_User' connection I created. On single posts I want to get the connected 'person' in my 'People' CPT from that post author. It seems like that should be fairly simple to do but my brain is hurting from trying to get this and I can't spend much more time on this.


title: How to remove some options in visual editor?

text: I want remove some options in visual editor. How to remove them? For example i want to remove the following.   1. Align left option   2. Align center option   3. Align right option   4. More tag option   5. Add media   6. Toggle fullscreen   7. Toggle spellchecker   8. Show/hide kitchen sink   9. strikethrough Please help me to remove them from my wordpress visual editor. Thanks


title: Contact form with database integration issue

text: This is more a question about the idea I am going to share and ask for advice for. I would like to have a contact form on my site, where people complete their data and it gets stored inside a database. I want to have the option that they include a file (any file up to 5mb - pdf, doc, exe, etc..). This needs to be stored in the database or somewhere else as well. Then I want to provide people the access to this database with info and files, and grant the access with a user/password or by IP. Do you know what are my options? Did you have any experience with a plugin that does that? I saw one plugin that stores the data in a db, but not sure how to combine all three points I mentioned here. Advice will be appreciated. Many thanks.


title: query_posts with sorting on a custom datestamp

text: I have a custom meta field that I want to use to sort with `query_posts` but its not ordering my posts properly since it is a datestamp (i.e. 04/21/2014) and its treating it like a normal text string. I thought about converting the field using `strtotime` but that doesn't work.               $args = array(       'meta_key'      => strtotime('pexpires'),       'orderby'       => 'meta_value',       'order'         => 'desc',       'post_type'     => 'post',       'showposts'     => '60',     );     $query = query_posts($args);


title: Make email not required comments.php

text:
I need to edit my comments.php to make emails NOT required. I've attached my code below, I understand that I need to get rid of $req and $aria_req from my email field, but as the site is live I don't want to try and make any changes without doing it properly. Thank you!               $author_name = get_comment_author();          $args = array('title_reply' => __( 'Post a new comment' ),                   'title_reply_to' => __( 'Post a new comment' ),                   'label_submit' => __( 'Submit Comment' ),                   'comment_field' => '

<textarea id="comment" name="comment" placeholder="Enter text right here!" cols="45" rows="8" aria-required="true"></textarea>

',                        'fields' => apply_filters(                              'comment_form_default_fields', array(                                      'author' => '

' . __( 'Name', 'domainreference' ) . ' ' . ( $req ? '' : '' ) . '<input id="author" name="author" type="text" value="" size="30" ' . $aria_req . '/>
',                                      'email' => '
' . __( 'Email', 'domainreference' ) . ' ' . ( $req ? '' : '' ) . '<input id="email" name="email" type="text" value="" size="30" ' . $aria_req . '/>

')),                        'logged_in_as' => '
' . sprintf( __( 'Posting as %2$s (Logout)' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ) . '
',                         'cancel_reply_link' => __( 'Cancel' )                        );          $args_log = array('title_reply' => __( 'Post a new comment' ),                   'title_reply_to' => __( 'Post a new comment' ),                   'label_submit' => __( 'Submit Comment' ),                   'comment_field' => '

<textarea id="comment" name="comment" placeholder="Enter text right here!" cols="45" rows="8" aria-required="true"></textarea>

',                        'fields' => apply_filters(                   'comment_form_default_fields', array(                        'author' => '

' . __( 'Name', 'domainreference' ) . ' ' . ( $req ? '' : '' ) . '<input id="author" name="author" type="text" value="" size="30" />
',                        'email' => '
' . __( 'Email', 'domainreference' ) . ' ' . ( $req ? '' : '' ) . '<input id="email" name="email" type="text" value="" size="30" />

')),                        'logged_in_as' => '
' . sprintf( __( 'Posting as %2$s (Logout)' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ) . '
',                        'cancel_reply_link' => '
'.__( 'Cancel' ).'
'                        );


title: Using twitter bootstrap in a theme

text: Recently I made a simple web template using basic HTML and twitter bootstrap along with my own custom CSS. I want to convert that into a WordPress theme. I know how to create WP theme from basic template . But how can I integrate twitter bootstrap with it? If I put `bootstrap.css`, `bootstrap-responsive.css`, `custom.css` (my custom CSS file) into the CSS folder of WordPress theme, and `bootstrap.min.js` into my js folder of wp theme , will it work?


title: Widget Screen Locked

text: Within the Wordpress dashboard, the widget screen is locked and it won't allow me to drag new widgets within the sidebars - or remove any that's there. I've seen suggestions to toggle the 'screen options' from that page, but there that button is locked as well within that page in the dashboard. I've tried deactivated plugins and installing a 'cache clear' and still nothing. **Anyone have any suggestions as to why this is happening?**


title: Can't view network plugins.php or upgrade-core.php on multisite

text: I have a network with 5 or 6 sites. In the network admin panel I can see all pages except the /wp-admin/network/plugins.php page and the /wp- admin/network/upgrade-core.php page. Both of those files exist when viewing the folder structure, but for some reason they won't load. Any help is appreciated.


title: How to remove 'create new post' entry for a custom post type?

text: I have a custom post type that is created using a form on the site. I want to disable new post creation from wordpress admin. Is there a way to do that ?


title: unable to wp_enqueue_script('suggest');

text: i'm not able to enqueue the built in autosuggest script in my wordpress theme.               wp_enqueue_script('suggest');      my current workaround for that problem is to deregister, register manually an then enqueue it – like so:               wp_deregister_script('suggest');     wp_register_script('suggest', '/wp-includes/js/jquery/suggest.js');     wp_enqueue_script('suggest');      i can't figure out how to solve this problem, because i get no error at all (WP_DEBUG defined TRUE) thanks for your thoughts, hans //update sorry for being a bit cloudy with the description of my problem: i am working on a wiki-like thing based on wordpress. there is one page where users can upload new images and tag them (this is where i need the suggest.js). the templatefile for this page looks like:               <?php     //enqueue scripts + styles     wp_enqueue_script('uploadify', get_bloginfo('template_directory') . '/js/uploadify/jquery.uploadify.v2.1.0.js', array('jquery'), null, null);     wp_enqueue_script('swfobject', get_bloginfo('template_directory') . '/js/uploadify/swfobject.js', array('jquery'), null, null);     wp_enqueue_script('jcrop');     wp_enqueue_style('jcrop');     wp_deregister_script('suggest'); //workaround     wp_register_script('suggest', '/wp-includes/js/jquery/suggest.js'); //workaround     wp_enqueue_script('suggest'); //workaround          ...          get_header();          page content that uses scripts & styles          get_footer();     ?>      at the very beginning of the file i'm enqueueing the additional styles/scripts i need for that single page. (other "basic" scripts + styles get enqueued in my functions.php) enqueueing jcrop for example works without any problems…


title: Exclude current page from list of pages

text: I'm using [catlist categorypage=yes post_type=page] in the sidebar to display a list of pages with the same category as the current page. Wonderful, but it returns a link to the current page. Is there a simple way to exclude the current page from the results?


title: How can I include custom post types on a tag page?

text: I'm using custom post types, but they don't appear on tag pages along with regular posts and i'd like to include both standard and custom post types on tag or category pages. ### What would be required before the loop to include all posts? (including custom type). **Updated:**   To add, I found this code here, which worked perfectly for the first part:               add_filter('pre_get_posts', 'query_post_type');     function query_post_type($query) {       if ( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {         $post_type = get_query_var('post_type');         if($post_type)             $post_type = $post_type;         else             $post_type = array('post','cpt'); // replace cpt to your custom post type         $query->set('post_type',$post_type);         return $query;         }     }      Second question still remains though: ### Is there a way to allow readers to filter by post type? So either of the following would work..   * `example.com/tag/blue?post_type=custom`   * `example.com/tag/blue?post_type=post`


title: Is it possible to not receive email notifications for comments?

text: I created several blogs. Two are sites I maintain but others are sites I created for other people and I retain administration access to them just in case they need me to go and fix some page, but I don't want to receive notifications every time they have a new comment waiting for moderation. Is there a way in WordPress that while being an administrator of a blog, to not receive the email notifications for some blogs and still get them for some other blogs?


title: How Can I Securely Implement a Password-less Login Feature?

text: Just posted a new plugin: No More Passwords I currently have it tagged beta because logging into a platform is a sensitive issue and I don't want to release something that may have security holes. So here's my query: Is is secure? I've done the following to ensure security:   1. Username/password are never passed back and forth, only the unique hash.   2. Hash is removed from the database once it’s used, old hashes that haven’t been used can’t be unless the database is hacked, but then you have bigger issues.   3. All database queries of the hash have been escaped to prevent XSS attacks.    4. nonce added to ajax call.   5. nonce and confirmation added to on mobile end to prevent CSRF attack. Here I have a complete description of how it works. Next version I hope to implement oauth via twitter, since iOS now has it worked in... Thanks for your input in advance. Edit: I decided that as an added layer I would add a sessionID check to make sure that it's the same browser logging in as the browser that initiated the QR code login.


title: Taxonomize taxonomy terms?

text: I want to register taxonomies that apply to taxonomy terms (in addition to posts). I believe this is possible because posts and terms are both WP objects. What steps are needed to achieve this? Because taxos are mainly geared towards posts, what needs to be done differently to achieve this? On "edit term" pages, how can I get the editing boxes to appear like they do in posts? Relevant core files:   * wp-includes/taxonomy.php   * wp-admin/edit-tag-form.php


title: twentyeleven_content_nav hook no longer outputs navigation link after 3.5 upgrade

text: After upgrading to 3.5, I discovered that navigation has disappeared outside of the main index page. Theme is TwentyEleven and I've verified that this still occurs after disabling all plugins.                                       <?php if ( $wp_query->have_posts() ) : ?>                                      <?php twentyeleven_content_nav( 'nav-above' ); ?>                                      <?php /* Start the Loop */ ?>                                              <?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>                                              <?php get_template_part( 'content-beers', get_post_format() ); ?>                                      <?php endwhile; ?>                                      <?php wp_reset_query(); ?>                                      <?php twentyeleven_content_nav( 'nav-below' ); ?>      Live site page


title: Jquery on custom-field backend

text: I need some help because I want to use some jquery (and css probably) on some custom fields on post edit screen. What I need exactly is to make , and . magically apear when user types a number: types 100, jquery makes it 1,00 and so on. The custom field I created using the plugin Types and it's named wpcf- imovel-preco. I have no clue about using jquery to manipulate elements on backend :(, that alone would be great help, so i know where to start from!


title: Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?

text: Is wordpress capable of having hierarchical taxonomy and hierarchical custom post types in one permalink ? I would like to do the following: **tax-1/tax-2/cpt-1/cpt-1-post/cpt-2/cpt-2-post/** in other words: **continent/country/travelog/travelog-post/videos/video-post/** or in a real case where "a-day-at-the-beach" is the travelog post and "sand- in-my-trunks" is the video post: **europe/spain/travelog/a-day-at-the-beach/videos/sand-in-my-trunks/** I have 4 custom post types that would always be at the level of cpt-1 and 3 custom post types (videos, photos, sketches) that would always appear at the sub level of cpt-2. When complete the site will have roughly 4000 posts in total. I'm hoping there is a plugin or set of plugins to help achieve this, but so far I've not found that magic combination. If not, can this permalink structure be custom coded with url re-writes and REGEX ?


title: Wrapping the_content() in Schema articleBody tag?

text: I am trying to put `the_content()` inside `<meta itemprop="articleBody" content="`(content here)`">`. But if I just put `<?php the_content() ?>` in there, it doesn't work, image goes, structure gets mis-aligned, and `">` appears after the content. Any ideas? Edit: I don't know why this was put on hold for not fitting in the Wordpress scope.. the_content() is a Wordpress function, I was clearly having trouble with structuring/SEO for my Wordpress site.


title: Plugin Creation: Overriding upload_max_size and post_max_size

text: I'm trying to write a plugin script that involves the user uploading a large file. To cope with this I need to alter the following settings:   * post_max_size   * upload_max_size If I alter these in php.ini it works as intended. However, it I try the following from within my plugin code, it doesn't take affect:               @ini_set( 'upload_max_size' , '100M' );     @ini_set( 'post_max_size', '105M');      I don't really want to have to talk the user through editing of either php.ini or a WordPress config file. Ideally I'd be able to perform it for them from within the plugin. Does anyone know how this can be achieved? Cheers.


title: Validating a new user registration field

text:
**What I'm trying to do:**   * Add new user meta fields that can be updated when the user edits their profile   * Validate them correctly when the form is submitted **What I've done:** I have successfully added the fields to the user editting form and have them being updated to the options database as follows:               public function setup_user_meta() {         // Show the fields when editing or showing         add_action('show_user_profile', array($this,'show_user_meta'));         add_action('edit_user_profile', array($this,'show_user_meta'));         // Update the fields         add_action('personal_options_update', array($this,'process_option_update'));         add_action('edit_user_profile_update', array($this,'process_option_update'));     }      .               public function show_user_meta($user) {         ?>
Player Information

                 Description	                 <textarea name="cuhc-description" id="cuhc-description" rows="5" cols="30"><?php echo esc_textarea(get_the_author_meta('cuhc-description', $user->ID)); ?></textarea>

          <?php         }      .                   public function process_option_update($userid) {             update_user_meta($userid, 'cuhc-description', ( isset($_POST['cuhc-description']) ? $_POST['cuhc-description'] : '' ) );         }      **What I want:** This works, however I have a number of different fields and I want to validate them in `process_option_update()`, eg: checking they're a number and if not returning an error to the user. How do I tell Wordpress there is an error and not to continue to act on the form? And where do I echo or send the error(s)? Wordpress also appears to use javascript validation within the user update page - how do I piggy-back onto this instead of doing my own one?


title: Generate fixed image sizes for different pages, eliminate sizes during upload

text: I've built a few sites in Wordpress and in general I'm quite pleased with all the possibilities it has developed lately. There's one main thing that is utterly confusing for end users; the sizes they have to choose when using an image. They really do not understand the concept of pixels, and then they also forget to pick a size anyway. It's very demanding. Coming from CMS systems such as Expression Engine, I am used to the end user uploading the file and the sizes are generated using ImageMagick (or similar) through the template/theme. So he'll never have to choose a size. This also has the advantage that images are constantly the same in sliders etc. So is there a way of simplifying this procedure? No size options, resizing only when needed on a page and in the exact size.


title: Ability to only view (not edit) other user's personal profile information

text: I have created 2 roles, `Center` and `Student`, for my WordPress website with different capabilities using members plugin. I want the student role users to be only able to view and edit their personal profile information and I achieved this by granting them the read capability. Now the issue is I want the Center role users to be able to list and view student role users personal profile information without being able to edit them. I have granted the Center role three capabilities: `read`, `list_users`, `edit_users` with this I am able to list all users as I wanted to, I am able to view personal profile information but with the ability to edit. I know that with `edit_users` editing ability will come, but I want to know how to limit it to view or ready only, or is there any other way out. I don't want the Center users to be able to edit student users personal information, they should just be able to list and view the information. I am new to WordPress and I am loving it.


title: Dismiss Bootsrap modal outside modal div

text:
this is my first post here so i am sorry in advance if this is a niewbie question ... ( i am a civil engineer not a wordpress developer... :( ) I have added a bootstrap modal dialog in my wordpress website...everything works fine but when clicking elsewhere or pressing esc the modal dialog is not dismissed the code in loop is:               <a href="<?php echo get_childTheme_url(); ?>/modal.php?ID=<?php the_ID(); ?>" data-toggle="modal">
...
      the javascript is               $(function() {            $('[data-toggle="modal"]').click(function(e) {              e.preventDefault();              var href = $(this).attr('href');              if (href.indexOf('#') == 0) {                $(href).modal('open');              } else {              $.get(href, function(data) {                $('
' + data + '
').modal();                   });              }            });          });      and the external modal.php is               <?php if (!function_exists('get_option'))     require_once('../../../wp-config.php');?>
          ×
Modal header 2

                    <?php          $post_id = $_GET['ID'];          $queried_post = get_post($post_id);          $title = $queried_post->post_title;          echo $title;          echo $queried_post->post_content;          ?>

          Close
      Can anybody help undestand why clicking outside modal or pressing esc the modal dialog is not dismissed? Thanks in advance


title: Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?

text: I'm in the process of creating a leveled tutorial structure in WordPress and want to build it so that it sets up the front-end with no code needed from the user. So far, I have a custom post type called 'tut_page' that has a metabox for custom taxonomy called, 'tut_group' and terms can be added via the taxonomy metabox. For my register_taxonomy, the value for 'hierarchical' has been set to true. So I want levels, however I don't want more than two deep. I know that I can choose how many levels of terms to display in a template, but is there a way where I can just prevent users from creating terms that are deeper than two levels from the taxonomy metabox? Here's what I have in functions.php for registering the taxonomy:               function create_tutorial_topic() {         register_taxonomy(             'tut_group', //name of taxonomy             'tut_post', //object type e.g. our post type             array(                     'labels' => array(                     'name' => _x( 'Tutorial Group', 'taxonomy general name' ),                     'singular_name' => _x( 'Tutorial Groups', 'taxonomy singular name' ),                     'search_items' =>  __( 'Search Tutorial Groups' ),                     'all_items' => __( 'All Tutorial Groups' ),                     'parent_item' => __( 'Parent Tutorial Groups' ),                     'parent_item_colon' => __( 'Parent Tutorial Groups:' ),                     'edit_item' => __( 'Edit Tutorial Group' ),                     'update_item' => __( 'Update Tutorial Group' ),                     'add_new_item' => __( 'Add Tutorial Group' ),                     'new_item_name' => __( 'New Tutorial Group' ),                     'menu_name' => __( 'Tutorial Group' ),                 ),                 'rewrite' => array( 'slug' => 'tutorial-group' ),                 'hierarchical' => true, //this is true but I only want two levels deep             )         );     }      I would also like to build as much this as much as I can myself without having to use a plugin. I tried searching on this site and found questions about limiting the number of terms, but not hierarchy levels. Thanks for any tips in advance!


title: Mobile theme not showing correct page after custom re-writes

text: I have tried a few different Mobile Theme Plugins for WordPress. My clients site requires we use a separate theme for Mobile visitors instead of a nice responsive theme. I am running into the same issue with all the Plugins that I have tried though. My `/blog` page always shows the Mobile theme, even if I have a cookie set to view the desktop theme, so viewing in a Desktop browser or mobiles, this 1 particular page always ends up showing the mobile theme which is a huge problem. So to explain how my `/blog` page is different from other pages I will explain... I have custom re-write rules which makes all `Page post type` pages end with a `.htm` My `/blog` page is also a Page post type, however this `/blog` page has custom re-writes, which makes it work without the `.htm` that all the other Page post types have. So in short all my Post of the `Page Post Type` end with `.htm` **EXCEPT** my `blog` page which is the only page with the problem of showing the proper theme with the Mobile plugins. Below is the code used for the `/blog` page custom re-writes...               function custom_rewrites(){         add_rewrite_rule('blog', 'index.php?pagename=blog','bottom' );         add_rewrite_rule(             'blog/page/([0-9]+)?$',             'index.php?pagename=blog&paged=$matches[1]',             'top'         );     }     add_action('init','custom_rewrites');      And below is the code that makes my `Page Post Types` use the `.htm` extension...               /* Add .htm extension to Page URL Links */     add_action('init', 'htm_page_permalink', -1);     function htm_page_permalink() {         global $wp_rewrite;         if ( !strpos($wp_rewrite->get_page_permastruct(), '.htm')){             $wp_rewrite->page_structure = $wp_rewrite->page_structure . '.htm';         }     }      I am currently using this Mobile Plugin http://wordpress.org/plugins/any- mobile-theme-switcher/ Another unique issue, the `/blog` page that ALWAYS shows the Mobile theme, well it works as normal and shows the proper theme is you are logged into WordPress, so only users that are logged out have the problem of always seeing the mobile theme on this page. Also if I type into the URL `/blog.htm` instead of removing the `.htm` on the blog page, then it also shows the correct theme. **Main Issue** The WordPress site has 2 themes, a Desktop theme and a Mobile theme, it uses a Plugin to detect mobile and show the correct theme. However my custom re- writes seems to be messing this up because my `/blog` page ALWAYS shows a Mobile theme, regardless if you are viewing the Mobile or Desktop theme for the site. I realize this is pretty complex but I am hoping someone might know of a simple fix I might just be overlooking. Also the Custom re-writes and all custom functionality is in a Plugin so that it should work with either theme. If anyone has any ideas based on this information, please do share, I am at a loss here and running out of options fast. After playing with this all day and making changes to try an improve this, right now my `/blog/` page shows a list of post when I view the blog page or view an actual Posts under the blog, they all show the same page which is a mobile view and lists recent posts


title: Is there a good Q&A platform to integrate into WordPress?

text: I think my audience is more capable of answers each others' questions than I am. I need a system for them to do that and I'd like it to integrate with WP so I could use their existing usernames and accounts. Do you know of a good solution?


title: Can i do plugin commits directly from a plugin folder inside an installation using the Trunk SVN

text: I have several virtual hosts setup, three of them pull files via SVN when needed(though only the trunk folder actually **needs** this), using SVN for other versions make for easy patch creation, or easy file replacement if i hack a core file. ![enter image description here](http://i.stack.imgur.com/zlOLa.jpg) My question is whether i can checkin a plugin from directly inside the plugins directory? So take this plugin located in `wp-content/plugins/post-ui-tabs` for example. ![enter image description here](http://i.stack.imgur.com/xRx0t.jpg) Can i use that folder to house my WordPress.org plugin or does my plugin's folder need to mimic the directory structure of the SVN, eg..   * brances/   * tags/   * trunk/ **UPDATE:** Thanks for the feedback guys! All helpful in getting to understand local vs remote directory structure. I've got my plugin up in the repo now, see here.   Post UI Tabs Direct answer to my question, was Yes, i can do commits directly from my plugins folder, i simply have a typical local structure of `wp- content/plugins/myplugin` which is just a checkout of `http://svn.wp- plugins.org/myplugin/trunk`. I commit directly to trunk, then when i want to push a new version, i branch onto a tag(do that directly in Tortoise) and update the readme.txt stable tag to reference the new tag, ie. the operation creates the remote `http://svn.wp-plugins.org/myplugin/tag/VER` with all my files, and makes that available to uses, whilst my local working copy remains on trunk(i'll blog about it in the future when i've had more practice). Easier then i thought!... thanks for all the advice guys.. all valuable pieces of information, Andy i felt your answer helped the most, so i'm giving you the accept, everyone else i still really appreciate your help, unfortunately i can only accept one answer... but thank you all the same.


title: Last comment page first with full number of comments?

text:
I use paged and threaded comments with:   * 10 comments per page   * the last comment page first   * the newest comments first If there are 21 comments total, the first page only contain 1 comment - the newest. How do i get the newest 10 comments always showing on the first page? ~~I'm using WordPress 3.0.3.~~ Edit: Upgraded to 3.1, the problem still exists... Edit: Forgot to add the code I'm using. I use a callback for the listed comments, here goes:               function mytheme_comment($comment, $args, $depth) {     $GLOBALS['comment'] = $comment; ?>     <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">         <div id="comment-<?php comment_ID(); ?>" class="comment">                  <?php if(function_exists('hkTC_comment_title'))                 hkTC_comment_title($comment->comment_ID,'','');             ?>                  <?php comment_text() ?>                                   Skrivet av:                 <?php                 $commentAuthID = get_comment(get_comment_ID())->user_id;                 echo the_author_meta('first_name',$commentAuthID)." ";                 echo the_author_meta('last_name',$commentAuthID);                 ?>                 kl. <?php echo get_comment_time('H.i'); ?>, den <?php echo get_comment_date('j F Y'); ?>
                 <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>

         <?php }      The hkTC_comment_title function is from this plugin that I'm also using: http://wordpress.org/extend/plugins/hikari-title-comments/ But that shouldn't mess with the number of comments I think. Edit: This is my custom template used to display the page with the comments: http://123.writeboard.com/4x2m38ifvnkrct7l


title: Multisite wp-admin goes to blank screen after forwarding URL

text: i have wordpress multisite setup on my LAMP here at home (static ip address) Using my ip in any browser it seems to work flawlessly (i have four subdirectory network sites running on it) This evening i went over to one of my domain registrars and forwarded the domain name to my static ip address (clone method). unfortunately, if i navigate to my wordpress site using the URL/wp-admin, i cannot access the dashboard on any of the network sites (it just shows a blank screen in the browser). The various networked sites front ends appear to be working normally although the login meta doesnt work (its does absolutely nothing...as if there's no hyperlink) So essentially, static ip address method of getting to multisite works fine... URL forwarding = no login to dashboard using meta or wp-admin... but everything appears to work on the front end any ideas?


title: How to remove .html permalink without every post getting 404?

text: While there are lots of posts about adding '.html' to your permalinks, I can't find anything about removing it. I changed permalinks from how the previous volunteer set it up (/%category%/%postname%.html) to remove '.html' (/%category%/%postname%/), but now posts are all getting 404 errors. What's the right way to do this if I want to remove all the '.html' extensions without the errors? Would the redirection plugin be causing the problem?


title: Add a notice to users upon first login to the admin area

text: I'd like to give users a little welcome message on their first login to the admin area. Once they hide the message it should not appear again. I noticed admin_notice is a hook but don't know where to start. Thanks.


title: Additional image sizes are not being generated

text: When I upload an image through the admin interface, the image is only saved at full-size. The other sizes are configured to their default values in Settings > Media. The automatic resized versions are not being generated. I have a feeling this is due to not having a specific PHP extension installed/enabled, but I don't know what extension WordPress uses or how to install/enable it.


title: Editing the Comment Reply Link

text: Just found this site via the WP-Hackers List, been using WordPress for years (make a living partially thanks to it) and never stumbled on this site! Posted this on the WP-Hackers list, but didn't find a solution. I know WordPress 3.1 has removed the nofollow attribute from the comment Reply link (WordPress 3.1 beta looks good), but was working on something theme wise that should also work with removing the nofollow attribute from the link for WordPress 3.0.3 and below, but can't get it working. from /wp-includes/comment-template.php                } else {       $link = "ID) . "#$respond_id' onclick='return addComment.moveForm(\"$add_below-$post->ID\", \"0\", \"$respond_id\", \"$post->ID\")'>$reply_text";      }      return apply_filters('post_comments_link', $before . $link . $after, $post);      In WordPress 3.1 rel='nofollow' has been removed from the above code. I'm trying to achieve the same at theme level for WordPress 3.0.3 and below. Basically adding this code to the comments loop as a test works:               $comment->comment_content = str_replace('nofollow', 'Test One',$comment->comment_content);      This removes the text nofollow from a comments body. I tried               $comment_reply_link->reply_text  = str_replace('Reply', 'Test Two',$comment_reply_link->reply_text );      As another test to replace the anchor text of the Reply link to confirm I'm on the right track. Didn't work. and               $comment_reply_link->link  = str_replace('nofollow', '',$comment_reply_link->link );      to delete the nofollow part of the rel attribute. Didn't work either Tried a variety of permutations with no joy. Any ideas? David


title: Offset posts with random order

text:
I'm trying to have five advertisement locations, each pulling posts from the same custom post type, but also loading randomly. The only problem I have with my code below is that it will sometimes duplicate the posts shown. Is there a way so that all 5 advertisements display a random advertisement post without duplicating? Here's one of the banners:
     <?php query_posts('post_type=advertisement_posts&offset=1&orderby=rand&showposts=1');?>          <?php if (have_posts()) : ?>     <?php while (have_posts()) : the_post(); ?>     <?php $advert_url = get_post_meta($post->ID, 'rba_advert_url'); ?>     <?php $thumbnail_id = get_the_post_thumbnail($post->ID);     preg_match ('/src="(.*)" class/',$thumbnail_id,$link);     if(!empty($thumbnail_id)) {     $image_path =  thumbGen($link[1],234,116,"crop=1&halign=center&valign=center&return=1");     $image_all = get_bloginfo('url').$image_path;     $my_image = array_values(getimagesize($image_all));     list($width, $height, $type, $attr) = $my_image;     }     ?>         <?php if(has_post_thumbnail()) : ?>         <a href="<?php echo $advert_url[0]; ?>" target="_blank">         <img src="<?php echo $image_path; ?>" alt="<?php the_title(); ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>"/>                  <?php endif; ?>          <?php endwhile; ?>     <?php endif;?>     <?php wp_reset_query(); ?>
      Any ideas?


title: Hover/Zoom on Lightbox gallery

text: Is there a way to hover/zoom on the larger image in a lightbox gallery. I am using Lightbox Gallery Manager from Raygun and have several galleries on a page. Once the lightbox gallery is opened, I want to be able to zoom in on parts of the image to see more detail. Here is the webpage that I am building http://tandcupholstery.com/customer-restorations/. I have the lightbox galleries working, but once the larger image opens I want to be able to zoom in.


title: Path for contact form file

text: I have a php contact form that I use with all websites, so ideally I want to avoid using a plug in. The files used include: • contact.php - A file with php/html write up which displays the form fields. • contact-form.php - A file that contact.php connects to to send the information. I've created the equivalent of contact.php as a static page in the Wordpress login. The code within contact.php which connect to contact-form.php is as follows:               <form method="post" action="/contact-form.php" >      What I would like to know is how I would connect to this file in the instance of Wordpress - locating files in Wordpress is something which has always confused me... Thanks


title: WP_Query orderby not working with meta_value_num and menu_order

text: I have made a custom post type (sidebar_element) which are shown on sidebar. On each sidebar element admin can choose where in sidebar should that element be shown, ie. 'top', 'middle' or 'bottom', and that the value is saved in meta field. Meta values for those alignments are 30, 20 and 10. Now, if there are multiple sidebar elements with same alignment then they should be aligned by their menu_order value given. This is how I'm trying to achieve all that, in my sidebar.php               $sidebarElems   = new WP_Query( array (                             'post_type'         => 'sidebar_element',                             'posts_per_page'    => -1,                             'meta_key'          => 'sidebar_element_meta_alignment',                             'orderby'           => 'meta_value_num menu_order',                             'order'             => 'DESC' ) );      This however isn't working. Elements get sorted first by `meta_value_num` **ascending** and then, correctly, by `menu_order`. If I delete the `menu_order` from `orderby`, `meta_values` gets properly ordered. This thing is driving me crazy! Please help. Thanks. **EDIT**   Here's the SQL Query generated, when `var_dump($sidebarElems)`               SELECT XXX_posts.* FROM XXX_posts     INNER JOIN XXX_postmeta ON (XXX_posts.ID = XXX_postmeta.post_id)     WHERE 1=1 AND XXX_posts.post_type = 'sidebar_element' AND (XXX_posts.post_status = 'publish') AND (XXX_postmeta.meta_key = 'sidebar_element_meta_alignment' )     GROUP BY XXX_posts.ID     ORDER BY XXX_postmeta.meta_value+0,XXX_posts.menu_order DESC      **ANSWER**   Found an answer, check below


title: Add read more to the_content

text: Hi I have a custom post type that i've truncated on the archives pages using this:               function limit_the_content($content){       $word_limit = 35;       $words = explode(' ', $content);       return implode(' ', array_slice($words, 0, $word_limit));     }      How would I add a read more and a link to the end of each post. Thanks in advance.


title: User-friendly link to attached images for a certain post?

text: I have set up a slideshow running on the front page of my site that runs on images attached to a page called 'Home'. I would like to be able to adjust its contents and order from the admin area. And lo, I can do this, by going to the 'Home' page in pages, clicking on the Media Library, going to the 'Gallery' tab and reordering/editing each of the attached images. But this is not very convenient for the person who will use the site. Can anyone recommend a plugin that allows for very simple management of attachments for a given post? Even if it's just a link I can place it in a metabox on the Dashboard and they needn't follow the above tortuous route to get to where they need to be. Thanks!


title: Meta boxes not showing up

text: Okay so I'm trying to render a meta box. This is what I have so far, trying to keep it as basic as possible:               add_action('load-post.php', 'ad_templates_callback' );     add_action('load-post-new.php', 'ad_templates_callback' );          function ad_templates_callback(){         add_action('add_meta_boxes', 'ad_templates_add_meta_box');         add_action('save_post', 'ad_templates_save_post');     }          function ad_templates_add_meta_box(){         add_meta_box( 'ad_templates', 'Template Options', 'ad_templates_render', 'page', 'normal', 'default');     }          function ad_templates_render($object, $box){         wp_nonce_field( basename(__FILE__), 'ad_templates_nonce' );         global $post_id;         ?>             <p>                 balblabl test             </p>         <?php     }     function ad_templates_save_post(){         //nothing     }      I have no idea why, but it doesn't show up on either the New Page or existing Page pages. I've tried it with removing the 'load-post.php' hooks and I've tried it with using Posts instead of Pages. I've copied this code from an earlier WP theme I've created (which successfully shows the boxes), with a slight edit to the theme slug. So somewhere, somehow I'm missing something.


title: make diffrent template on last six post published

text: I wanted to make last six posts different template from other posts but I can't get it work below are my loop code inserted on my index.php               $last_no_of_posts = 6;     $ctr = 0;          while ( have_posts() ) { the_post();              if ($ctr < $wp_query->found_posts - $last_no_of_posts) {           // require special template           get_template_part( 'loop', 'special' );        } else {           // regular template           get_template_part( 'loop', 'index' );        }        $ctr++;          }


title: Why max-width:97.5% on content images?

text: Is there a specific reason why we can find max-width:97.5% instead of 100% in common themes such as Twenty Eleven?