Title: pq's Replies | WordPress.org

---

# pq

  [  ](https://wordpress.org/support/users/pq/)

 *   [Profile](https://wordpress.org/support/users/pq/)
 *   [Topics Started](https://wordpress.org/support/users/pq/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pq/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pq/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pq/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pq/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pq/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/users/pq/replies/page/2/?output_format=md) [→](https://wordpress.org/support/users/pq/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TranslatePress - Translate Multilingual sites with AI Translation] Flag image not working for Spanish Puerto Rico](https://wordpress.org/support/topic/flag-image-not-working-for-spanish-puerto-rico/)
 *  [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/flag-image-not-working-for-spanish-puerto-rico/#post-12854324)
 * I don’t know why this issue is marked resolved, when the flag image is still 
   missing from the directory after the latest update (1.7.4).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - OpenStreetMaps] Fatal Error](https://wordpress.org/support/topic/fatal-error-3299/)
 *  Thread Starter [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-3299/#post-11983486)
 * I just rolled back the plugin to version 2.5.0 and the site works now. The error
   message that v. 2.9.3 generates (pasted in above) is pretty specific; is it not
   enough to go on?
 * I can’t leave my staging site broken; esp. can’t risk having the broken plugin
   merged inadvertently into production, so am going to keep the old version and
   maybe try again with the next update. Hope this gets figured out.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - OpenStreetMaps] Fatal Error](https://wordpress.org/support/topic/fatal-error-3299/)
 *  Thread Starter [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-3299/#post-11983289)
 * PHP 7.2. Do I need to upgrade to 7.3?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - OpenStreetMaps] Fatal Error](https://wordpress.org/support/topic/fatal-error-3299/)
 *  Thread Starter [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-3299/#post-11982642)
 * Update: removed the plugin using sftp; updated WP core & re-added plugin. Activation
   killed the site again. Will remove again, but all of the events use maps so not
   sure how to proceed. Obviously I can’t push this to production.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[DK PDF - WordPress PDF Generator] Error when inserting Gallery in WordPress 5](https://wordpress.org/support/topic/error-when-inserting-gallery-in-wordpress-5/)
 *  [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-when-inserting-gallery-in-wordpress-5/#post-11308704)
 * I’m having the same problem whenever there is a gallery embedded on a page (single
   images seem to be okay). Is there any progress on this? It’s pretty much a deal-
   breaker. Please help!
    -  This reply was modified 7 years, 2 months ago by [pq](https://wordpress.org/support/users/pq/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Sticky Posts - Switch] Sticky CPT entry appearing on every single entry page](https://wordpress.org/support/topic/sticky-cpt-entry-appearing-on-every-single-entry-page/)
 *  [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/sticky-cpt-entry-appearing-on-every-single-entry-page/#post-10105354)
 * I’m having the same problem. On the list page, the sticky posts behave as expected,
   but the single post is screwy. Two (or even three) articles show up on the single
   post, and a related posts query at the bottom of the page miscounts the number
   of posts , even though ignore_sticky_posts => 1 is in the query.
    [http://indyeastend.staging.wpengine.com/real-estate/iconic-brand-reinvented/](http://indyeastend.staging.wpengine.com/real-estate/iconic-brand-reinvented/)
 * Ideas?
 * thanks,
    pq
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Customize WordPress Emails and Alerts - Better Notifications for WP] Custom post notifications cause page to time out](https://wordpress.org/support/topic/custom-post-notifications-cause-page-to-time-out/)
 *  Thread Starter [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/custom-post-notifications-cause-page-to-time-out/#post-9545208)
 * Thanks so much for your quick reply! Will look into this option and check with
   our web host.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Eventbrite API] Works on localhost but not on staging?](https://wordpress.org/support/topic/works-on-localhost-but-not-on-staging/)
 *  Thread Starter [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/works-on-localhost-but-not-on-staging/#post-7208353)
 * Looks like I was just being impatient; a couple of hours later, I looked at the
   page on staging again and it’s working. Huzzah!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Form submits with empty required text fields](https://wordpress.org/support/topic/form-submits-with-empty-required-text-fields/)
 *  Thread Starter [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/form-submits-with-empty-required-text-fields/#post-5271382)
 * I’m also using the database extension for the plugin, and checking the list of
   submissions, it’s clear that the form is accepting the placeholder text as a 
   form field value.
 * Checking the generated code, I can see that the values of the text fields are,
   in fact, empty:
 * `<input type="text" name="firstname" value="" size="40" class="wpcf7-form-control
   wpcf7-text wpcf7-validates-as-required" aria-required="true" aria-invalid="false"
   placeholder="First Name" />`
 * – but the db list shows that the above field gets submitted with a value of “
   First Name.” Is there something additional that one needs to do in order to tell
   the form validation script that a placeholder value is not a form field value?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Form submits with empty required text fields](https://wordpress.org/support/topic/form-submits-with-empty-required-text-fields/)
 *  Thread Starter [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/form-submits-with-empty-required-text-fields/#post-5271367)
 * Nope, not getting any js errors.
 * The screen shot you posted is what happens with an empty *email* field. Notice
   that the message is not saying, “Hey this field is empty,” it’s just hollering
   that it’s not a valid email address.
 * The problem I’m having is that if a user enters a valid email address but nothing
   else, the form will submit. The text fields do not validate as required; and 
   as far as I can tell, the email field is not validating as required, either; 
   its validation seems to be only for correct format.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Form submits with empty required text fields](https://wordpress.org/support/topic/form-submits-with-empty-required-text-fields/)
 *  Thread Starter [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/form-submits-with-empty-required-text-fields/#post-5271358)
 * Maybe I was unclear – the form accepted three empty required fields. This is 
   not resolved yet…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Form submits with empty required text fields](https://wordpress.org/support/topic/form-submits-with-empty-required-text-fields/)
 *  Thread Starter [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/form-submits-with-empty-required-text-fields/#post-5271354)
 * Hm, seeing your post, I thought, “Maybe it’s submitting b/c I’m logged in?” So
   I logged out of the back end, refreshed the page, entered ONLY an email address,
   and got sent right to the thank you page.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Form submits with empty required text fields](https://wordpress.org/support/topic/form-submits-with-empty-required-text-fields/)
 *  Thread Starter [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/form-submits-with-empty-required-text-fields/#post-5271340)
 * WP 4.0
    WPCF7 3.9.3
 * [http://wearenewmexico.org/](http://wearenewmexico.org/)
 * There are two identical forms on the page; I created separate wpcf7 forms so 
   that they would not cross-validate.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PageNavi] pagination fails on /page/3/ and above](https://wordpress.org/support/topic/pagination-fails-on-page3-and-above/)
 *  Thread Starter [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/pagination-fails-on-page3-and-above/#post-4555977)
 * Found the answer here: [http://wp.tutsplus.com/tutorials/custom-post-type-pagination-chaining-method/](http://wp.tutsplus.com/tutorials/custom-post-type-pagination-chaining-method/)
 * I moved $numposts definition from archive-cwa_stories.php to functions.php and
   removed the ‘posts_per_page’ element from the $story_query. Then I created a 
   new page-cwa_stories.php following the instructions on wptuts.
 * So the whole solution:
 * 1. Add to functions.php:
 *     ```
       // set number of posts to 15 on Our Stories page and enable pagination
       function stories_posts_per_page( $query ) {
       	$numposts = '';
       	if(!is_handheld()) {
       		$numposts = 15;
       	} elseif(is_handheld() && !is_tablet()) {
       		$numposts = 2;
       	} else {
       	$numposts = 6;
       }
       if ( $query->query_vars['post_type'] == 'cwa_stories' ) $query->query_vars['posts_per_page'] = $numposts;
       	return $query;
       }
       if ( !is_admin() ) add_filter( 'pre_get_posts', 'stories_posts_per_page' );
       ```
   
 * 2. Update custom post query on archive-cwa_posts.php:
 *     ```
       $story_query = new WP_Query( array (
       	'order' => 'ASC',
       	'orderby' => 'title',
       	'paged' => $paged,
       	'post_type' => 'cwa_stories',
       	'post_status' => 'publish',
       	)
       );
       if ($story_query->have_posts()) : while ( $story_query->have_posts() ) :  $story_query->the_post();
       ```
   
 * 3. Create page-cwa_stories.php with only this content:
 *     ```
       /* Template Name: Our Stories */
   
       $paged = 1;
       if ( get_query_var('paged') ) $paged = get_query_var('paged');
       if ( get_query_var('page') ) $paged = get_query_var('page');
   
       query_posts( '&post_type=cwa_stories&paged=' . $paged );
   
       require_once( 'archive-cwa_stories.php' );
       ```
   
 * 4. Set this as the template for /our-stories page.
 * Pagination works! Shout out to Justin Carroll!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PageNavi] pagination fails on /page/3/ and above](https://wordpress.org/support/topic/pagination-fails-on-page3-and-above/)
 *  Thread Starter [pq](https://wordpress.org/support/users/pq/)
 * (@pq)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/pagination-fails-on-page3-and-above/#post-4555891)
 * I should add that I have set the $paged var before the wp_query:
    `$paged = (
   get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;`

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/users/pq/replies/page/2/?output_format=md) [→](https://wordpress.org/support/users/pq/replies/page/2/?output_format=md)