Showing posts with label web-development. Show all posts
Showing posts with label web-development. Show all posts

Thursday, February 22, 2018

Publish Wordpress Posts Within a Specific Date Range


If you are okay not having an interface, the Display Posts Shortcode Plugin has parameters you can put into your shortcode to get posts from a certain date range.

date_query_before Specify the before argument for a date query. More info on Date Queries. Default: empty Example: [display-posts date_query_before="2015-12-31" date_query_after="2015-01-01"]

date_query_after Specify the after argument for a date query. More info on Date Queries. Default: empty Example: [display-posts date_query_before="2015-12-31" date_query_after="2015-01-01"]

Display Posts Shortcode (Available Parameters) — Support — WordPress.com

When paired with category/taxonomy parameter, this can be powerful to get archived posts that need to be displayed by date or their specific category for content/structural reasons.

taxonomy, tax_term, and tax_operator
Use these parameters to do advanced taxonomy queries. Use ‘taxonomy’ for the taxonomy you’d like to query, ‘tax_term’ for the term slug (or terms) you’d like to include, and ‘operator’ to change how the query uses those terms (most likely this field will not be needed).
Default: ‘taxonomy’ = empty , ‘tax_term’ = empty , ‘tax_operator’ = ‘IN’
Example: [display-posts taxonomy="color" tax_term="blue, green"]

If you want to display your posts with a the image thumbnail, and have it look better, you'll need to add some custom CSS to float the image.

And to separate the spacing between the posts with DIV wrappers (instead of OL or LI that add bullets), you'll need to add margin for:
.listing-item {margin-bottom: 2em;}

Posts by Date Range with a Plugin Visual Interface


WP Posts Master — WordPress Plugins
This plugin offers a visual interface and many options for getting Wordpress posts with specific filters.  However, only the Pro edition offers date filtering: "Filter Posts by custom dates. You can decide Start & End Date"
The Pro Edition is $28 on the Evato Marketplace

Friday, December 29, 2017

Duplicating a Wordpress site to Create a Development Area


The Process for Duplicating Your Wordpress Site Includes These Steps


  1. Download the Wordpress database using PHP MyAdmin.
  2. Download all files in the website directory with an FTP client.
  3. Sync/upload the Wordpress files to your development site directory.
  4. Create a new database for the Development site and restore the database download to this empty database.
  5. Edit wp-config.php on the development site with your new DEV database details.
  6. Change the Site URL with functions.php (temporary) or in PHPMyAdmin.
  7. Begin building your new site.


General Information on Wordpress Backups.


Create Sync With Your Site
WinSCP and other programs allow you to sync with your website to keep a mirror copy of the content on your server and hard drive updated. It saves time and makes sure you have the latest files in both places.

Transmit for Mac also supports file syncing over FTP.  I've found that for a Wordpress site with only a few file changes (ie: a minor Wordpress version update) that it takes about 8 minutes.

Thursday, May 19, 2016

Creating Helpful 404 Error Not Found Pages for Visitors

Create useful 404 pages - Search Console Help
Tips:
Place a site map on the 404 page.
List links to some of your most popular content so that visitors can liekly find what they came for.
Output a list of categories if your website has a blog or content organized in categories.

Thursday, February 25, 2016

Wordpress Setup Checklist for Basic Website Development

Wordpress Setup

  • Create a separate user for the site owner/business manager and make their user with Admin or Editor privileges, depending on skill level and editing needs.
  • Set the homepage to be a static page. (Configured in Settings > Reading), or from a Theme's options panel.
  • Setup Sidebars with Theme and/or WooSidebars

Plugins

  • Backup:  Updraft Plus.  Schedule weekly or monthly backups to go to the site owner, depending on how frequently they anticipate posting content. 
  • SEO: Yoast SEO
  • Prevent bloated database/excessive revisions:  WP Revision Control
  • Add Contact Form 7

After site is transferred
  • Replace any URLs referencing the development site. Do a search in the Pages list for links or image URLs referencing the development site.  If any are found, remove them from the individual pages
  • Create a Backup using Updraft plus
  •  

Monday, December 1, 2014

Search and Replace URLs on a Wordpress site/database


Search and Replace « WordPress Plugin
Free
Last Updated: 2014-9-15
4.4 out of 5 stars

WordPress Serialized PHP Search Replace Tool
Free PHP script that provides text boxes to do a search and replace on a database (better for intermediate users). This requires that you know your Wordpress database username and password.

Search and replace domain names in your Wordpress site using SQL queries.  Make sure you've backed up your database before doing this, as typos could wreak major havoc on your website. This tutorial from WP Beaches has detailed screenshots showing the process in phpMyAdmin.

Wordshell
$79 single machine license with free life-time upgrades
$60 - includes 12 months of free upgrades
$230 - site license option with free upgrades for life (Wordshell can be installed on unlimited machines within a single organization)

Tons of command line tools to manage multiple Wordpress sites at once.
Easy search and replace command to update URLs when moving a Wordpress website from a development location to its live location.



Read more:

3 Efficient Tools for WordPress Database Migration

Saturday, November 29, 2014

Wordpress Slider Plugins with Thumbnails (for photography and portfolio websites)

Master Slider 
Free version available on Wordpress.org
Paid version is $19 on sale.
compatible up to Wordpress 4.0.1
4.8 out of 5 stars on Wordpress.org
Seems like the free version offers a lot and the pro version provides advanced features, like more layouts, Flickr and Facebook sliders, etc.
* Very reasonably priced for the Pro version.



Slider Pro

by Bqworks
$28 for Wordpress plugin
horizontal thumbnails,  mixed content, responsive, touch swipe, simple, elegant, unobtrusive, cross-fade.
* looks like the style of slider I prefer, with larger thumbnails.
* Recommend this one to both Ian V. C., and Ian R.


Carousel, full page width.  These are great for portfolio sites.


Foto Slider

by Slider Villa
$12 for single site / $30 for multi-site
* multiple color options, multiple columns of thumbnails, nice vignette fade effect, white design option is helpful for most websites.
* could be more expensive than the asking price

Foto Slider on dark background with three columns of thumbnails.

Foto Slider on light background with two columns of thumbnails.


MetaSlider

$19 / $39 / $99
simple, elegant, opaque thumbnails
five or six layout options.




Wonderplugin Slider

by WonderPlugin
$59 / $79 / $99
About 8 different slide styles with 20 total variations
** expensive compared to other options

 







Soliloquy
$



Cosmo

by Slider Villa
$12 single / $30 multi-site
* Full page width slider, modern style, great for portfolio sites where clients need to focus on the images or video!


Other slider choices

7 Best Free WordPress Slider Plugins - WPMU DEV
October 2013



Wednesday, September 24, 2014

Best Web Hosting Services

Web clients often ask which web hosts I recommend.  These are my top two web hosts that have good relability and features for the price.  Both are excellent for running a basic website with Wordpress.

BlueHost
Creating an account and website hosting is very fast.  Fast enough that I registered a domain name on behalf of a client while they were sitting next to me.

Dreamhost
Good support for Wordpress installations.  Basic tech support usually responds within a day.

Five Best Web Hosting Companies [LifeHacker]
Dreamhost
Host Gator
BlueHost
Linode
A Small Orange

Tuesday, June 3, 2014

Top Wordpress Backup Plugins - June 2014

Online Backup for Wordpress was my go-to backup plugin for Wordpress. The interface was simple and I loved that it gave me a real-time progress bar when making a backup.  Even on a large site, a full database backup took only about a minute.   As of this writing, the plugin has not been updated since 2013-9-9, which was nine months ago, and the plugin is listed as being compatible up to Wordpress 3.6.1.  It has 363,000 downloads to date.

As of June 2014, these are the top backup plugins available for Wordpress.
See a listing of all the top plugins for Wordpress

UpdraftPlus - WordPress Backup and Restoration
4.9/5 stars
Requires: 3.2 or higher
Compatible up to: 3.9.1
Last Updated: 2014-6-2
Downloads: 921,622
(The first backup plugin listed on the Popular Plugins.)
Filesize: 2.6 MB zip.  (version 1.9.13)

BackUpWordPress
4.6/5 stars
Requires: 3.7.3 or higher
Compatible up to: 3.9.1
Last Updated: 2014-5-6

Downloads: 1,063,818
File size: 307KB (version 2.6.2)

BackWPup Free - WordPress Backup Plugin
4.3/5 stars
Requires: 3.4 or higher
Compatible up to: 3.9.1

Last Updated: 2014-4-22
Downloads: 1,295,709
File size: 2.7MB (version 3.1.2)
Note: interface appears to have a nice progress bar showing the status of the backup.
As of June 3, 2014, it is the most downloaded Backup plugin on Wordpress.org.  However, it only has a rating of 4.3/5 stars, whereas UpdraftPlus has an amazing 4.9/5 stars.

Friday, April 4, 2014

Limit the number of Wordpress revisions

Wordpress revisions are a great feature, but they can easily bloat the overall size and number of entries in your database, leading to backups that are much larger than they need to be.

A handy plugin is available on Wordpress.org called WP Revisions Control.  It lets you set the number of revisions for pages and posts.  The number can also be set on an individual basis for pages and posts.

The other great thing about this plugin is the "Purge These Revisions" button that appears at the bottom of the post editor.  This can help clean up your homepage or other pages that have countless saved revisions.

 Plugin zip size: 11 KB
A page with too many revisions.  My homepage was worse with about 70 revisions that were bloating the database.

Plugin options under Settings > Writing

Plugin options on individual pages and posts at the bottom of the post editor.


Thursday, April 3, 2014

Remove comments completely from the 2012 Wordpress theme

The highlighted lines are responsible for letting comment spam though, even if you turn off comments in the discussion settings in the Wordpress dashboard.


Wordpress has an annoying habit of letting spam comments through on a site with only pages and no blog posts.

To completely remove comments from being posted in the 2012 theme, open the content.php file in your twentytwelve theme folder and remove or comment out the lines highlighted in the screenshot above.  It's best to make this change in a Child Theme so you can easily undo this later if you decide to have a blog on your Wordpress website.

Thursday, October 3, 2013

This account has reached it's limit of concurrent processes - fixing a Wordpress issue

"This Account Has Reached it's limit of concurrent processes".

We got stuck with this problem on our hosting account that hosts about a dozen Wordpress sites.
After checking our server logs, wp-cron.php appeared to be the culprit.

Wp-cron.php helps by doing some automated things like posting scheduled content, checking comments for spam, and emailing comment notifications.  The problem is that wp-cron.php loads on every single page view, so this could be running hundreds, thousands, or millions of time each day, depending on your website traffic.

To stop wp-cron.php from running on every page visit, add this near the top of wp-config.php

define('DISABLE_WP_CRON', true);

To run wp-cro.php at your own chosen interval, create a cron job that runs every hour with the following line.  If your site only receives one or two comments per day, the cron job could be run every 12 or 24 hours.

wget -O /dev/null http://www.example.com/wp-cron.php?doing_wp_cron

via: wp-cron.php – How To Stop It From Running Frequently

Tuesday, November 8, 2011

Basic Customizations When Starting a Thesis Website

1. Disable Comments on All Pages
On the Design Options page:


2. Remove the Thesis attribution in the footer
Add this line to the custom_fuctions file.
// REMOVE THE DEFAULT THESIS FOOTER: Get smart with the Thesis theme...
remove_action('thesis_hook_footer', 'thesis_attribution');

3. Remove the "Wordpress Admin" link
 On the Design Options page:



4. Replace "0 Comments" with something more appealing