simenschi
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Booking Calendar] Custom wp-content folder not supported?Seems I’ve got another issue after I edited the file. Now I’m getting the 500 server error, and the file /app/plugins/booking/wpdev-booking.php says I can’t access it. Even though I’ve set the permissions to 777, 755 and 644. The file says “You do not have permission to direct access to this file !!!” no matter what.
Is there anything else I can check besides the permissions?
Forum: Plugins
In reply to: [WooCommerce] how to select default shipping methodNo, sorry. Let me know if you find a solution!
That was actually it. I had a .com in the path (wordpress_backups/website.com), which obviously some servers do not support(while some others does).
Anyway, removing the dot did the trick! Thanks!
Forum: Plugins
In reply to: [WP Booking Calendar] Custom wp-content folder not supported?Great, thank you!
Looking forward to the update!
Forum: Plugins
In reply to: [WooCommerce] how to select default shipping methodThat was what I thought, but it selects the “local pickup” even though it’s not on top, and the same result when I choose to use “Select Box”.
Maybe it’s because “local pickup” is free, and WooCommerce automatically selects the cheapest alternative?
Forum: Plugins
In reply to: [BackWPup – WordPress Backup & Restore Plugin] No FTP option(Job destination)When running the site locally, with the exact same plugins, the FTP option appears. So it’s no doubt a server setting.
What kind of PHP technique do BackWPup use to send files via FTP? Maybe there a mod or something I have to activate in the server/domain control panel.
Forum: Plugins
In reply to: [BackWPup – WordPress Backup & Restore Plugin] No FTP option(Job destination)I’m running 3.0.13 as well. According to the “information”-tab in BackWPup the server is running Linux and Apache.
Is it a PHP setting rejecting BackWPup to send by FTP maybe..?
Forum: Plugins
In reply to: [BackWPup – WordPress Backup & Restore Plugin] No FTP option(Job destination)Thanks, but I have created a new job, but there’s still no FTP-option on the job destination page. See screenshot bellow:
Haha, yes, that would actually be perfect in my situation. ??
(the site is deployed now, so I don’t really care anymore.)
Forum: Plugins
In reply to: [Regenerate Thumbnails] "Upsizing" thumbnailsAs a “fix”, I wrapped the <img> with a <div> and set a height to the div and overflow:hidden, while having the img width at 100%.
Like this for example: https://www.ehow.com/how_10016389_create-div-crop-image-css.html
True that, but in my situation I have 3-400 imported blog posts so that makes setting the featured picture directly a hell of a job ??
Forum: Fixing WordPress
In reply to: Wrap every two posts in divFinally got it to work, here’s my front-page.php code if anyone else need it:
<?php //initialize $do_not_duplicate $do_not_duplicate=0; //is_paged returns true if we are on page 2,3,... if(!is_paged()): //Get featured content for page 1 $my_query = new WP_Query('posts_per_page=1'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; // THE MAIN ARTICLE endwhile; endif; // Display rest of content if (have_posts()) : while (have_posts()) : the_post(); // Checks that it's not the first post if( $post->ID == $do_not_duplicate ) continue; // If its paged we want to wrap the odd posts, else the even if(is_paged()) { if( $wp_query->current_post%2 == 0) echo "\n".'<div class="wrap">'."\n"; } else { if( $wp_query->current_post%2 !== 0) echo "\n".'<div class="wrap">'."\n"; } // THE REST OF THE ARTICLES // CLOSES tag if its odd posts, if(is_paged()) { if( $wp_query->current_post%2 == 1 || $wp_query->current_post == $wp_query->post_count-1 ) echo '</div> <!--/.wrap-->'."\n"; } else { if( $wp_query->current_post%2 !== 1 || $wp_query->current_post == $wp_query->post_count-1 ) echo '</div> <!--/.wrap-->'."\n"; } endwhile; endif; ?>
Thanks again alchymyth!
Having the same issue myself, would love a checkbox that says something like “Remove original <img>-tag?”.
Forum: Fixing WordPress
In reply to: Wrap every two posts in divThank you! That works perfectly on my archive/paged pages, but on the front page I have the first post with separate layout and styling like this:
<?php //initialize $do_not_duplicate $do_not_duplicate=0; //is_paged returns true if we are on page 2,3,... if(!is_paged()): //Get featured content for page 1 $my_query = new WP_Query('posts_per_page=1'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; // #### The first, main article endwhile; endif; //Display rest of content if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate ) continue; // the two-column wrapper if( $wp_query->current_post%2 == 0 ) echo "\n".'<div class="twopostscolumn">'."\n"; // #### The other posts if( $wp_query->current_post%2 == 1 || $wp_query->current_post == $wp_query->post_count-1 ) echo '</div> <!--/.twopostscolumn-->'."\n"; endwhile; endif; ?>
Is there any way I can do the same thing on my front page? The code above starts by printing the “</div”> which obviously breaks my markup and layout.
Maybe I can use the is_paged() somehow? Since your code it works like a charm on the paged pages(because there’s no separate loop for the first post i guess).
Forum: Fixing WordPress
In reply to: Wrap every 2 posts with a row-fluidCould you please share your solution?
I need to wrap every two posts as well, like this:
<div class="wrap"> …post1 …post2 </div> <div class="wrap"> …post3 …post4 </div>