RyanPrentiss
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Small site w/ VERY LARGE _options tableThanks for the help guys.
After looking into the _options table I realized there are a LOT of cached cart records. I was able to clear the cache via Woocommerce -> System Status -> Tools -> Clear All Customer Sessions. This sent 1.16G of my 1.26G _options size to overhead which I was able to easily remove by rerunning WP_Optimize.
Forum: Plugins
In reply to: [Spam protection, Anti-Spam, FireWall by CleanTalk] Woocommerce IPN ConflictAfter reactivating, I continuously receive the following error when submitting Woocommerce changes.
400 Bad Request
Request Header Or Cookie Too LargeForum: Plugins
In reply to: [Spam protection, Anti-Spam, FireWall by CleanTalk] Woocommerce IPN ConflictStill seems to be blocking IPN responses. I will test a little longer to confirm.
Primary issue resolved.
The Store Manager issue has been resolved; however the IPN responses are still being blocked. (Noted in another post.)
Forum: Plugins
In reply to: [Menu Cart for WooCommerce] Menu ErrorThank you!
Forum: Everything else WordPress
In reply to: Plug-In To Assign Images To Users/Clients?Thanks Ipstenu, but not quite.
I need something where, as a graphic designer/photographer, I can upload images to someone’s account so that only they can see.
Forum: Themes and Templates
In reply to: Full Path to Attachment ImagesHere we go…
function getFullPath($url){ return realpath(str_replace(get_bloginfo('url'), '.', $url)); }
Forum: Themes and Templates
In reply to: Full Path to Attachment ImagesThat’s the URL… I need the Full Path.
Drive Letter:\Path\to\File
Forum: Fixing WordPress
In reply to: Can't get WP_Query to work properlyThanks jkovis…
That was my original code, but I’ve since figured out the issue;
I just need to add “‘ignore_sticky_posts’ => 1” to the array… solved everything.
Current code is:
$slider = new WP_Query( array( 'ignore_sticky_posts' => 1, 'post_type' => 'any', 'meta_key' => 'osiris_slider-main', 'orderby' => 'date', 'nopaging' => true, 'posts_per_page' => 5 ) );
Forum: Themes and Templates
In reply to: Where are variables such as %2$s defined?I understand that they’re placeholders, but I can’t seem to figure out what variables are assigned to the placeholders.
— what for it… —
And know I’ve noticed, lol. The variables are in the widget’s constructor.
But thank-you for taking the time to reply esmi.
Forum: Plugins
In reply to: Creating A Email Form WidgetYes for the first question.
Forum: Themes and Templates
In reply to: How to hide widget title when empty?Theme is still being developed. Not available online. But I am registering the following code for my sidebar:
register_sidebar( array( 'name' => 'Sidebar', 'before_widget' => '<section class="widget widget-sidebar">', 'after_widget' => '</section>', 'before_title' => '<h1>', 'after_title' => '</h1>' ) );
I need the H1 tags to be stripped when there is no content.
Forum: Themes and Templates
In reply to: Thumbnail won't change from 150px wideCopy/paste your function.php thumbnail code.
Forum: Fixing WordPress
In reply to: Filter needed for two wp gallery modificationsThis is what I have so far…
function process_gallery(){ add_filter('wp_get_attachment_link', 'add_rel', 10, 4); } function add_rel($link, $size, $id, $permalink=false){ return preg_replace('/a href/', 'a rel="lightbox" href', $link); }
This solved the 2nd problem, but for some reason I don’t know the 1st issue persist. I am attempting to force “wp_get_attachment_link” $permalink attribute to be false… but it is still returning a link directed to the attachment page instead of the attachment file which is what I want.
Help on the above matter please.
SN: The second issue was also able to be solved simply via jQuery, which I may resort back to since it is very useful to differentiate multiple “wp_get_attachment_link” calls…
$('.blahblah').attr('ref', 'lightroom');