“Echo” is a very handy PHP language construct used to output one or more strings. But echo writes to output directly. So it isn’t very straightforward to save the output of echo into a variable for later use. To do this, you need PHP output buffering.
PHP
Code Snippets To Integrate WooCommerce With The Genesis Framework
When integrating WooCommerce with the Genesis theme framework, you will very likely encounter a number of layout and/or styling issues. This article provides short code snippets and instructions to help you resolve the issues in no time.
Remove Date From Old (But Evergreen) Posts In Genesis
Got lots of evergreen content on your blog? Displaying the dates they were published may not be great for you or your audience. Read to learn how to remove the date from old (but evergreen) content. This article is specific to the Genesis framework.
Adding A Character Counter To The WordPress Excerpt Box
Custom excerpts are better for UI/UX because in their absence, most WordPress themes will just grab text from your content. But writing custom excerpts of proper length can be tricky. What you need is a character counter on your WordPress excerpt box!
Different Ways To Change The WordPress “siteurl” And “home” Links
Once in a while, you may need to manually change your WordPress siteurl and home links (e.g. when you’re migrating your entire website to a new domain). If not done right, your site may malfunction. Here are the different proper ways to do this.
Auto-Populate WordPress Image Alt Text (And Other Fields) On Upload
When an image is uploaded to WordPress, its title is auto-populated based on filename. But WordPress does NOT set the image Alt Text or other fields. For image-heavy sites, this implies repetitive manual effort. Read to learn how to automate this.