How To Create a Single Custom Post Type Template for Genesis in WordPress

Author: , October 21st, 2017

wordpress/wp-content/themes/yourTheme/single-yourCPTslug.php 1 2 3 4 5 6 7 8 9 10 11 add_action( ‘genesis_before_entry_content’, ‘display_custom_fields’ ); function display_custom_fields() {     $jobTitle = get_field(’_jobTitle’) ?: ‘-’;     print <<<EOT     <br style="clear:both"/>     <p>Job Title: $jobTitle</p> EOT; }   // Genesis Loop genesis(); add_action( ‘genesis_before_entry_content’, ‘display_custom_fields’ ); function display_custom_fields() { $jobTitle = […]

How To Find the AWS Region and Availability Zone Via the CLI

Author: , June 30th, 2015

/opt/aws/bin/ec2-metadata | grep placement

How to do Web Redirects in HTML, PHP and PERL CGI

Author: , November 9th, 2009

For PHP: [sourcecode language="php"] <?php header("HTTP/1.1 301 Moved Permanently"); header("Location:"); exit(); ?> [/sourcecode] For PERL: The fast way: [sourcecode language="perl"] #!/usr/bin/perl -Tw $|=1; use CGI; my $cgi_object = new CGI; my $new_page_url = qq~; print $cgi_object->header(-expires=>"now",’Location’ => $new_page_url,); exit 0; [/sourcecode] OR The slow way: [sourcecode language="perl"] #!/usr/bin/perl -Tw $|=1; print qq#Content-Type: text/html; charset=ISO-8859-1\n\n<html> […]


Author: , November 9th, 2009

So I have caught up on social matters via text and Facebook this morning. Have gotten the CHS/Rapida project underway – a promising beginning. Must do plans and emails… Did the shutdown page for a client today – made sure to do index.html, index.php and cgi-bin/index.cgi. Still looks good, just no guts anymore. Spoke to […]