Adding the post type in the archive query string displays the relevant posts. It is that easy! my-wordpress-site.com/2014/3/?post_type=legend
-
-
WordPress Security Checklist
1. Install Better WP Security plugin 2. Add htaccess file to wp-content 3. Protect htacces file 4. Remove Header Outputs 5. Mark header removal 6. remove readme and license file
-
Generating a table in php with corresponding cells
A design I was working on used titles above an image in the feature area. The height of the titles needed to be consistent so they would line up. This is is a trick for iterating cells as a unit so the titles are in a cell above an image. Complicated algorithms are avoided. In this example, the content is…
-
Working with Persian/Farsi on a Website HTML / PHP / MYSQL
It took me a few hours to figure this out. Though it turned out to be quite simple. Everything needs to be in UTF-8. HTML Use the charset meta tag below: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> MYSQL The field needs to be collated “utf_8_persian_ci”. PHP Set the charset At the top of the document specify: header(“Content-type: text/html; charset=utf-8”); Set the database…
-
Integrating BluePay Recurring Payments with PHP
Below are instructions for using the BluePay_bp20post-PHP5.php class to setup recurring payments from a donation form.
-
HTML codes for Date and State Selects
State: <select name=”state”> <option value=”” selected=”selected”>Select a state…</option> <option value=”AL”>Alabama</option> <option value=”AK”>Alaska</option> <option value=”AZ”>Arizona</option> <option value=”AR”>Arkansas</option> <option value=”CA”>California</option> <option value=”CO”>Colorado</option> <option value=”CT”>Connecticut</option> <option value=”DC”>District of Columbia</option> <option value=”DE”>Delaware</option> <option value=”FL”>Florida</option> <option value=”GA”>Georgia</option> <option value=”HI”>Hawaii</option> <option value=”ID”>Idaho</option> <option value=”IL”>Illinois</option> <option value=”IN”>Indiana</option> <option value=”IA”>Iowa</option> <option value=”KS”>Kansas</option> <option value=”KY”>Kentucky</option> <option value=”LA”>Louisiana</option> <option value=”ME”>Maine</option> <option value=”MD”>Maryland</option> <option value=”MA”>Massachusetts</option> <option value=”MI”>Michigan</option> <option value=”MN”>Minnesota</option> <option value=”MS”>Mississippi</option>…