michaellawrence
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Logging into my multisite (base site or any) takes me to 404Anyone? I need this solved, my clients and even myself can’t login to our sites. We removed the WP Hide Login plugin and that helped, but now when we login, it just loops back to the login page (instead of 404). But it only works on Safari for Mac.
Forum: Plugins
In reply to: [Simple Blog Stats] count all posts from all custom post types?Found out a way to do it with code, no plugin
<?php $count_photos = wp_count_posts( 'photos' ); $count_videos = wp_count_posts('video'); $published_photos = $count_photos->publish; $published_videos = $count_videos->publish; $total = $published_photos + $published_videos; echo $total; ?> Posts
- This reply was modified 2 years, 4 months ago by michaellawrence.
Forum: Plugins
In reply to: [WooCommerce] Action Scheduler in Woocommerce, every minute?Ok thank you, this is very helpful!
I would like to know the answer to this too
@webnus thanks, good to know it will be in the next update. For now, I have tried your suggestion and to no avail, the error still persists. I’ll await an update, unless you have another suggestion
Thanks everyone, I just jumped back on this and appreciate the replies. I will try everyone’s methods. Going full steam on this store build now, so I think you’ve solved my issues!
Ok great, happy to grab plugins to enhance the functionality (I know that’s how Woo makes it’s bread). The Product Add On would be great then for my scenario.
Second question: CSV import. We have lots of shirts, I plan to import them off a CSV file to at least get them all into the admin.
If some shirts do have variation pricing, like Small to Large is $25, XL to 4XL is $27, I would then need to set them as Variable Products, no biggie. But based off the default CVS file at
https://github.com/woocommerce/woocommerce/blob/master/sample-data/sample_products.csv,
I’d still have to manually go in to each entry, once imported, and set those prices for those variations, even if they’re the same for all shirts (all SM-LG = 25, all XL – 4XL = 27). Would the Product CVS Import Suite help, so I can avoid having to manually set this one by one?- This reply was modified 3 years, 11 months ago by michaellawrence.
Awesome, that helped! Finally found the issue. I forgot that in my application file (we use the roots.io Bedrock framework for WP), I put an ajax kill code to test the load time by disabling the admin-ajax. I removed that and, bingo, back to normal. Can’t believe I forgot I put that in there. Checked my github logs to see if I had done anything and there it was. Totally forgot. thanks!
Forum: Fixing WordPress
In reply to: Taxonomy query, showing all posts. I want show just 1 (latest)I am an idiot. The codex is clear (just do ‘number’ => 1
<?php $tax = 'magazine'; $tax_args = array( 'orderby' => 'ID', 'order' => 'DESC', 'number' => 1 ); $magazines = get_terms( $tax, $tax_args ); foreach($magazines as $magazine) { $editions = new WP_Query(array( 'taxonomy'=>'magazine', 'term' => $magazine->slug )); $link = get_term_link(intval($magazine->term_id),'magazine'); $image_url = get_template_directory_uri(); $magazineimage = wp_get_attachment_image_src(get_field('magazine_taxonomy_image', $magazine->taxonomy.'_'.$magazine->term_id), 'full'); echo "<div class='news-item-wrapper'>"; echo "<div class='news-item'>"; echo '<div class="post-image" style="background-image:url('.$magazineimage[0].');">'; echo "<a href=\"{$link}\" title='{$magazine->name}'>"; echo '<img src="'.$image_url.'/dist/images/blank-image-magazine.gif" alt="'.$magazine->name.'" class="placeholder" />'; echo "</a>"; echo "</div>"; echo "<header>"; echo "<h2 class='entry-title'><a href=\"{$link}\" title='{$magazine->name}'>{$magazine->name}</a></h2>"; echo "</header>"; echo "</div>"; echo "</div>"; } ?>
Forum: Fixing WordPress
In reply to: How to create a switchable country site using one admin/themeI also had the idea of just making main “pages” with sub pages that pull content from post type archives. I could also use WPMU
Nevermind, I am an idiot.. my ID is “second-slide”, not “second-image”.. *bangs head on desk” duh..
this is being used on a single page
Hi, my code was generated by a plugin from Woocommerce, so I didn’t write it myself.
using $todaysDate
im having the same problem with the year issue. 2013 dates aren’t showing