Mark
Forum Replies Created
-
No problem, thank YOU for taking the time to get it fixed.
Run the query and updated to the latest version. All seems fine now ??
OK, updated to v2.13.2 and can confirm that the priority column is missing from the wp_snippets table.
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?
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 ?
Hi Shea.
Unfortunately not ?? I had to roll back to 2.11.0
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 6 years, 4 months ago by Mark.
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?
Just rolled back to 2.10.1 and all seems to be fine on that version.
Forum: Plugins
In reply to: [WooCommerce] Impossible to save Shipping zonesEDIT: 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 existI’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.
Forum: Themes and Templates
In reply to: Target posts that only have 1 specific tagIt works! Amazing. I’ve been messing with this for ages.
Thanks for you help, much appreciated.
Forum: Themes and Templates
In reply to: Target posts that only have 1 specific tagAh, it’s in my functions.php file.
Using a hook to put this code into a template file.
Forum: Themes and Templates
In reply to: Target posts that only have 1 specific tagOK, 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
In reply to: Target posts that only have 1 specific tagMy 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
In reply to: Target posts that only have 1 specific tagAh, 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?