Category: Web
-
WordPress Development: Getting all posts from get_posts()
I’m writing code for a wordpress plugin of mine, and needed for the get_posts() function to return ALL posts. Here’s what I was using before: $args = array( ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ); $posts = get_posts($args); According to the wordpress documentation, the ‘posts_per_page’ option for this function has a default value of 5,…
-
Is Google Indexing your HTTPS pages instead of HTTP?
Last week I had a site that Google was linking to securely, ie the https://www… instead of http://www. I had a SSL cert set up on the site, but not all the content was being served over https, which was causing errors. So if you searched for my site on Google and clicked on the…
-
Gmail filter for all incoming mail
I know it sounds weird to have a filter for ALL incoming mail, as it’s not really filtering anything. But sometimes there are actions you want Gmail to take on all of your email. This could include not sending anything to the spam folder, forwarding the email to a different address, or marking it with…
-
Internal Server Error 500 on a new server
We just got a new server on HostGator, and upon accessing some php files we had uploaded, we got this error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and…
-
How do I get a Google Trusted Store Badge?
That google trusted store badge looks pretty awesome, and I’m sure it’s a way to convert more visitors into customers. I thought it was just a matter of providing some documentation about your business’s policies and promising to have good support, but no – there are minimum eligibility requirements. At the time of this post,…
-
Calling document.write after page load causes blank screen
I came across some interesting behavior when calling document.write multiple times. The first time I called it was fine, but if I called it again in a setTimeout, the page would go blank. Turns out that it’s because once the page loads and fires document ready event, it doesn’t know where the current cursor is.…
-
EasyDbs Review
EasyDbs.com is a website that allows you to purchase common databases at reasonable prices. What sets them apart from the rest is that they are EASY! All of their databases are packaged with something called the EZDB system. I’m not sure what that is, but I can vouch that it made my database installation super…
-
WordPress: Removing all Javascript and Styles/CSS from the head
I wanted to remove ALL javascript and css from the head, but still call the wp_head function since it loads other stuff (meta, plugins, etc). Most advice tells you to use wp_deregister_script() and wp_deregister_style() to individually remove each file, but you need to know the name they were registered as, which requires you to dig…
-
Clicktale – Show Hidden Page Views Bookmarklet
Clicktale’s free plan only allows you to see 2 page views per recording session. And that’s simply not enough to see if Clicktale is worth paying for. How are you supposed to decide whether to upgrade to a paid plan if you haven’t been able to gauge the power of the tool? So, while you’re…
-
Getting rid of ^M newline characters in Notepad++
Today I was modifying someone else’s file when I noticed that when I uploaded it to the server it displayed horribly. All whitespace was gone, and in the place of newlines was ^M characters. Here’s a snapshot of how the file looked when I uploaded. If I viewed it with ‘more filename.php’ I didn’t see…