• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Archives for Programming

Programming

Command Line Cheat Sheet

Last updated on April 15, 2020 by Sal Ferrarello

I’m not sure why I remember some things so well (Charlie Chaplain died on December 25, 1977) and others just don’t stick (Memorial Day and Labor Day, which one is in Spring and which one is in Fall?).  At some point, I should start recording things I remember easily and things I do not and […]

Filed Under: Programming

get_next_post() Not Working in WordPress

Last updated on March 19, 2014 by Sal Ferrarello

Why is get_next_post() Not Working in WordPress We’ve got a WordPress instance setup with lots of posts being created as Drafts.  Then using the Bulk Actions, we change the status of the posts to Published.  Everything seems great until it becomes evident the get_next_post() and get_previous_post() functions are not returning anything. Why Isn’t this Working It turns out […]

Filed Under: Programming Tagged With: WordPress

HTML Comments within Comments

Last updated on October 9, 2013 by Sal Ferrarello

Everyone once in a while I find myself in need of nested HTML comments (i.e. HTML comments within comments).  Unfortunately, HTML does not support nested comments.  When you put HTML comments within comments, some of your content ends up uncommented. PHP Since it is rare that I’m working on a straight HTML site, usually there […]

Filed Under: Programming

jQuery filter Array Method

Last updated on September 29, 2013 by Sal Ferrarello

I really enjoyed Josh Clanton’s article Filtering Arrays with Array.filter on using the JavaScript filter method(). As he points out, Because the filter method is part of the ECMAScript 5 specification, it isn’t available in older browsers like IE8. Josh then lists a couple of options to bring this functionality into older browsers (i.e. IE < 9) […]

Filed Under: Programming Tagged With: JavaScript, jQuery

searchform.php not working in WordPress 3.6

Last updated on August 20, 2013 by Sal Ferrarello

This problem arises from a difference in how WordPress 3.5.2 and 3.6 handle the case where there is both a searchform.php template AND a filter on the hook get_search_form. In WordPress 3.5.2 in the presence of a searchform.php template, any filters on the hook get_search_form were ignored. With the upgrade to 3.6, filters on get_search_form are now […]

Filed Under: Programming Tagged With: WordPress

Stop Emails WordPress Plugin

Last updated on June 14, 2016 by Sal Ferrarello

Stops outgoing emails. Any outgoing emails will fail silently (i.e. WordPress will operate as if the email was sent successfully but no email will actually be sent). Why I’ve found when doing development work, sometimes I want to work on a site (often locally) but I don’t want it sending out any emails. Now with […]

Filed Under: Programming Tagged With: WordPress, WordPress Plugin

  • «Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 16
  • Go to page 17
  • Go to page 18

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in