Title: Mark's Replies | WordPress.org

---

# Mark

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Just updated to latest version and now no snippets work or save](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/)
 *  Thread Starter [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/page/2/#post-11126158)
 * No problem, thank YOU for taking the time to get it fixed.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Just updated to latest version and now no snippets work or save](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/)
 *  Thread Starter [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/#post-11126149)
 * Run the query and updated to the latest version. All seems fine now 😀
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Just updated to latest version and now no snippets work or save](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/)
 *  Thread Starter [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/#post-11126118)
 * OK, updated to v2.13.2 and can confirm that the priority column is missing from
   the wp_snippets table.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Just updated to latest version and now no snippets work or save](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/)
 *  Thread Starter [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/#post-11126098)
 * Just tried v2.13.2 and I’m sorry to say I’m seeing the same issue. 🙁
 * I’m guessing it’s something specific to my site?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Just updated to latest version and now no snippets work or save](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/)
 *  Thread Starter [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/#post-11125524)
 * Hi Shea
 * The latest version I’m seeing on my plugins page is 2.13.**0**
 * I tried updating to that but have the same issue. Rolled back to 2.10.1
 * Should I see v2.13.**1** ?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Just updated to latest version and now no snippets work or save](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/)
 *  Thread Starter [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/#post-11012189)
 * Hi Shea.
 * Unfortunately not 🙁 I had to roll back to 2.11.0
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Just updated to latest version and now no snippets work or save](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/)
 *  Thread Starter [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [8 years ago](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/#post-10525468)
 * No problem, thank you for helping!
 * OK, so…
 * code_snippets_version = 2.11.0
 * Sorry, I’m not sure which version I was on before. I usually update any plugins
   when I see there are updates so (looking at the changelog dates) it’s likely 
   I was on 2.10.1
 * Just a regular install, not a multi-site.
    -  This reply was modified 8 years ago by [Mark](https://wordpress.org/support/users/markjcasey/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Just updated to latest version and now no snippets work or save](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/)
 *  Thread Starter [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [8 years ago](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/#post-10525349)
 * Hi Shea
 * Thanks for the reply.
 * I’ve just checked my wp_snippets and no, the ‘priority’ column doesn’t exists.
 * I am still running 2.10.1 though. Would I need to try the latest version again?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Just updated to latest version and now no snippets work or save](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/)
 *  Thread Starter [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [8 years ago](https://wordpress.org/support/topic/just-updated-to-latest-version-now-so-snippets-work-or-save/#post-10523639)
 * Just rolled back to 2.10.1 and all seems to be fine on that version.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Impossible to save Shipping zones](https://wordpress.org/support/topic/impossible-to-save-shipping-zones/)
 *  [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/impossible-to-save-shipping-zones/#post-8822000)
 * EDIT: Sorted now Was a permissions issue!
 * Hi
 * Sorry to dig up an old topic but I’m having the exact same issue.
 * woocommerce_shipping_zones: ❌ Table does not exist
    woocommerce_shipping_zone_locations:
   ❌ Table does not exist woocommerce_shipping_zone_methods: ❌ Table does not 
   exist woocommerce_payment_tokens: ❌ Table does not exist woocommerce_payment_tokenmeta:
   ❌ Table does not exist
 * I’ve given all privileges to the database user so they can create the new tables
   but when I deactivate & reactivate WooCommerce, the tables still don’t get created.
 * My database prefix is wp_
 * Thanks for any help.
    -  This reply was modified 9 years, 5 months ago by [Mark](https://wordpress.org/support/users/markjcasey/).
    -  This reply was modified 9 years, 5 months ago by [Mark](https://wordpress.org/support/users/markjcasey/).
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Target posts that only have 1 specific tag](https://wordpress.org/support/topic/target-posts-that-only-have-1-specific-tag/)
 *  Thread Starter [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/target-posts-that-only-have-1-specific-tag/page/2/#post-4591939)
 * It works! Amazing. I’ve been messing with this for ages.
 * Thanks for you help, much appreciated.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Target posts that only have 1 specific tag](https://wordpress.org/support/topic/target-posts-that-only-have-1-specific-tag/)
 *  Thread Starter [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/target-posts-that-only-have-1-specific-tag/#post-4591937)
 * Ah, it’s in my functions.php file.
 * Using a hook to put this code into a template file.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Target posts that only have 1 specific tag](https://wordpress.org/support/topic/target-posts-that-only-have-1-specific-tag/)
 *  Thread Starter [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/target-posts-that-only-have-1-specific-tag/#post-4591935)
 * OK, so I changed the first line to be
 * <?php $tags = wp_get_post_tags( $post->ID, array( ‘fields’ => ‘names’ ) ); var_dump(
   $tags );?>
 * The output is array(0) { } followed by the final <p>
 * Just the tag that isn’t 1882 please.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Target posts that only have 1 specific tag](https://wordpress.org/support/topic/target-posts-that-only-have-1-specific-tag/)
 *  Thread Starter [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/target-posts-that-only-have-1-specific-tag/#post-4591932)
 * My tag is numerical (1882) – will that effect it?
 * I’m basically just using your code right now to try and get it working. So it’s
   this…
 *     ```
       <?php $tags = wp_get_post_tags( $post->ID, array( 'fields' => 'names' ) ); ?>
       <?php $tag_exists = in_array( '1882', $tags ); ?>
       <?php if ( $tag_exists && 2 == count( $tags ) ) : ?>
           <p>This post has exactly two tags, and one of them is tag-one!</p>
       <?php elseif ( $tag_exists && 1 == count( $tags ) ) : ?>
           <p>This post has exactly one tag, and it's tag-one!</p>
       <?php elseif ( ! $tag_exists && 1 == count( $tags ) ) : ?>
           <p>This post has exactly one tag, and it's not tag-one, it's <?php echo $tags[0]; ?>!</p>
       <?php else : ?>
           <p>This post either has three or more tags, or no tags at all, or it has one tag that wasn't the right one, or it has two tags, neither of which were the right one.</p>
       <?php endif; ?>
       ```
   
 * But it’s just always displaying the last <p> on every post.
 * Also, I’m not sure if it does do everything I need. I need one that says <p>This
   post has two tags. One of them is 1882 but display the other tag.</p>
 * Sorry to be a pain! Many thanks for helping.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Target posts that only have 1 specific tag](https://wordpress.org/support/topic/target-posts-that-only-have-1-specific-tag/)
 *  Thread Starter [Mark](https://wordpress.org/support/users/markjcasey/)
 * (@markjcasey)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/target-posts-that-only-have-1-specific-tag/#post-4591930)
 * Ah, OK.
 * Not sure the code is working correctly.
 * Just testing and everything is displaying the last part `<p>This post either 
   has three or more tags, or no tags at all, or it has one tag that wasn't the 
   right one, or it has two tags, neither of which were the right one.</p>`
 * I’ve changed the part at the beginning to be my specific tag
 * `<?php $tag_exists = in_array( 'tag-one', $tags ); ?>`
 * Am I missing anything else?

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

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