wspencer
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Some problems with social sharing buttonsCan you provide a link to an affected page?
Forum: Hacks
In reply to: function and if check in phpSorry, I typed too quickly. You’re passing in the $order object to the wc_change_billing_country() function. The switch statement should run on the billing_country property of that object…not the object itself. I’ve changed the code below, if you’re interested.
function wc_change_billing_country($order) { switch($order->billing_country) { case "DE": $order->billing_country = "Germany"; break; case "CH": $order->billing_country = "Hurliburli"; break; case "A": $order->billing_country = "Austria"; break; } return $order->billing_country; }
Forum: Hacks
In reply to: How to add a unique side menu for each page section?To add onto what RossMitchell said, you can create custom page templates for each of those pages. Within the template, you can call a different sidebar.
For example, creating a
page-about.php
template for the “About” page. Within that template is a call toget_sidebar()
. That function accepts a parameter for a specific sidebar, so you could callget_sidebar('about')
, which would reference asidebar-about.php
file (that you’ll also have to create and register).I suggest checking out https://codex.www.ads-software.com/Page_Templates and https://codex.www.ads-software.com/Customizing_Your_Sidebar
Forum: Hacks
In reply to: function and if check in phpYou could also use a switch statement instead of the multiple elseif checks…
function wc_change_billing_country($order) { switch($order) { case "DE": $order->billing_country = "Germany"; break; case "CH": $order->billing_country = "Hurliburli"; break; case "A": $order->billing_country = "Austria"; break; } return $order->billing_country; }
Thank you!
I suggest updating the title of this thread to reflect the problem. Something like “Version 1.7.6 can’t install properly” so it’s easier for the author to know that this is a serious problem.
I just sent him a message on Twitter.
It just looks like the wrong content was pushed for the update. Once he pushes the proper content in a new release, the plugin should work fine.
Looks like you may have pushed from the wrong Git/version control directory because the plugin folder contains Branch, Tags and Trunk.
Having the same issue. Here is the error…
The plugin simple-social-buttons/simple-social-buttons.php has been deactivated due to an error: Plugin file does not exist.
Forum: Fixing WordPress
In reply to: Custom date Format doesn't changePlease mark this as Resolved. Thanks
Forum: Fixing WordPress
In reply to: Trying to output columns with the loop, not working. Why?You’re on the right track. Seems like only a styling issue at this point
Forum: Fixing WordPress
In reply to: Trying to output columns with the loop, not working. Why?If you want 9 columns, shouldn’t you change the conditionals for $columnCount == 9 instead?
Forum: Fixing WordPress
In reply to: Adding thumbnails to post previewIs this for the front page of your site? If so, look for a file called front-page.php. If you can, just post that code on here.
Forum: Fixing WordPress
In reply to: Adding thumbnails to post previewOkay, that DOES go to an individual post.
So in the loop where you’re showing post listings, change where you have the_post_thumbnail() to this…
<?php if(!is_single() ) { ?> <?php the_post_thumbnail('thumbnail'); ?> <?php } ?>
Let me know if that works