g12mcgov
Forum Replies Created
-
I’m having this exact same issue, did you ever find a resolution?
Just checked. There’s no
/Resourcesdirectory underGuzzle/Http.Yes, that led to me now getting this error. Is there any fix to this? Seems like it’s an included certificate within the plugin.
There was an error attempting to check the permissions of the bucket tlas-bucket: [curl] 77: SSL: can't load CA certificate file /Users/grantmcgovern/Sites/TLAS/wp-content/plugins/amazon-web-services/vendor/aws/Guzzle/Http/Resources/cacert.pem [url] https://tlas-bucket.s3.amazonaws.com/~mcgoverg/TLAS/wp-content/uploads/as3cf-permission-check.txtThanks.
Forum: Plugins
In reply to: [Amazon Link] Why does this display the shortcode but not the original way?Well… this works, although I have no idea why/how. But you certainly got me in the right direction.
$content = get_the_content(); if (function_exists(amazon_shortcode)) { $pattern = $awlfw->get_regex('amazon'); // If our regex returns a match if (preg_match($pattern, $content, $matches)) { $shortcode = $matches[0]; echo apply_filters( 'the_content', $shortcode); get_template_part( 'template-parts/content', 'books-store' ); } }Forum: Plugins
In reply to: [Amazon Link] Why does this display the shortcode but not the original way?Paul,
This certainly helps. However, one last question…
Is there anyway to extract the Amazon Link shortcode from a post’s content? I’ve attempted using the built in wordpress function
get_shortcode_regex()along with doing some pattern matching, but to no avail and my guess it because it’s not “technically” using the shortcode API.Is there an easy way to extract it? I’d love to be able to extract it then do the below:
echo amazon_shortcode($shortcode)