Gary Wright
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] IF Controlled Add to Cart Loop TextThanks for your reply Con.
However in your example where would I include the IF part of the query?
For reference in the /single-product/add-to-cart/simple.php I simply changed the code to:
<button type="submit" name="add-to-cart" value="<?php echo esc_attr( $product->get_id() ); ?>" class="single_add_to_cart_button button alt"> <?php if(get_field('ad_activate_deposit') == "yes") { echo 'PLACE £99 DEPOSIT'; } else { echo 'ADD TO CART'; } ?> </button>
Forum: Developing with WordPress
In reply to: Custom Field, IF & Require_OnceThanks Steve!
Works perfectly, I just added a missing full stop after the field and will share code below to help anyone in the future.
$field = get_field('CUSTOM_FIELD'); if ($field) { $file = $_SERVER['DOCUMENT_ROOT'] . '/files/' . $field . '.php'; require_once( $file); }
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Publicise: Tumblr Link TextOkay, seems with a bit of digging I am not the only one who wants this…
https://github.com/Automattic/jetpack/issues/520
Two and a half years later, still not possible – can it really be true?
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Can’t Connect To SiteCheck in the dashboard on Jetpack’s website to see if your site has already been added.
Recently I tried to verify a domain however it failed during the process leading me to the same situation as described.
If it is in the dashboard, remove it and try to re-connect.
Forum: Fixing WordPress
In reply to: Deleting categories with less than X amount of postsThat’s exactly what I am doing and it’s painstakingly slow – hence reaching out for some help.
Tell me about it, they were created from a CSV import and should have been a few hundred… yeah right!
Forum: Fixing WordPress
In reply to: Moving to SSLThanks for the link Steve.
I didn’t decide the data would be like that, it is supplied by a third party of which I have no control unfortunately.
UPDATE: The suggested script worked a treat – all I did was search ‘HTTP’ and replace with ‘HTTPS’ within the wp_postmeta table. Thanks once again!
- This reply was modified 8 years, 2 months ago by Gary Wright.
Forum: Fixing WordPress
In reply to: Moving to SSLThank you for the replies.
However there is one issue I failed to mention and became clear following your replies.
All of the custom field URLs do not follow a set pattern, example follows…
Massive thumbs up for the report on conflict – I too had the same issue.
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] ACF not shown on blogpostHi Patrick,
Have you edited your theme to include your ACF?
Examples can be found here: https://www.advancedcustomfields.com/resources/code-examples/
- This reply was modified 8 years, 6 months ago by Gary Wright.
@bala Sundar – Managed to get it working again, increased the memory_limit in the php.ini file to 128M and seems to be running smoothly again.
Here is a sample of my data:
https://www.dropbox.com/s/t87s7kbc89szu9l/sample.csv?dl=0
The columns ‘DURATION’, ‘URL’, ‘THUMB’, ‘LARGE’ are all custom fields which I map once the file has uploaded.
As I said above I have been using the same template for all my imports and all have worked.
Thanks
@balasmackcoders – Thank for your reply.
This is what I initally suspected however I have checked and all my specs meet or exceed the plugin’s suggested requirements, please see the screenshot.
https://s30.postimg.org/xnajuc8hd/Screen_Shot_2015_12_31_at_14_06_14.png
Forum: Plugins
In reply to: [Custom Query Fields] Can't get it to work in 3.5I’ve got exactly the same issue.
Using Advanced Custom Fields and previously it worked but now nothing??
Forum: Themes and Templates
In reply to: [Responsive] No Header Menu on BlackberryWell on Apple devices it appears between the logo and the header box, but on the Blackberry device nothing appears at all.
Apple iPhone 5: https://www.dropbox.com/s/oiwhg59va1wubti/Photo%2017-11-2012%2023%2001%2038.png
Blackberry Curve 9320: https://www.dropbox.com/s/a2i4uulj5p3sd91/Photo%2017-11-2012%2023%2001%2059.jpg
Forum: Themes and Templates
In reply to: [Responsive] No Header Menu on BlackberryThanks – I’ve posted on there as well. ??