[insert_php]
if (isset($_GET[“rc”]) && $_GET[“rc”] != “”) {
$rc = $_GET[“rc”];

switch ($rc) {
case “ada_software”:
$cat = “ADA Software”;
break;
case “ada_supplies”:
$cat = “ADA Supplies”;
break;
case “brackets”:
$cat = “Brackets & Hangers”;
break;
case “brushes”:
$cat = “Brushes/Brush Products”;
break;
case “cad_cam”:
$cat = “CAD/CAM Software”;
break;
case “cast_metal”:
$cat = “Cast Metal Letters and Plaques”;
break;
case “cnc_routers”:
$cat = “CNC Routers”;
break;
case “digital_printers”:
$cat = “Digital Printers/Software/Cutters”;
break;
case “digital_printing”:
$cat = “Digital Printing”;
break;
case “engraving”:
$cat = “Engraving Equipment”;
break;
case “gold_leaf”:
$cat = “Gold Leaf”;
break;
case “letters”:
$cat = “Letters”;
break;
case “paint_primers”:
$cat = “Paint/Primers”;
break;
case “pinstriping”:
$cat = “Pinstriping Equipment”;
break;
case “sign_assoc”:
$cat = “Sign Associations”;
break;
case “sign_blanks”:
$cat = “Sign Blanks/Materials”;
break;
case “sign_stakes”:
$cat = “Sign Stakes”;
break;
case “tools_equip”:
$cat = “Tools/Equipment/Supplies”;
break;
case “vector_art”:
$cat = “Vector Art”;
break;
case “vinyl_film”:
$cat = “Vinyl and Film Materials”;
break;
case “wholesale_3d”:
$cat = “Wholesale 3D Signage”;
break;
default:
$cat = “Category not found”;
break;
}

$query = new WP_Query(“cat=20&posts_per_page=20&orderby=title&order=asc&meta_key=resource_category&meta_value=” . $rc);

echo ‘

Resources » ‘ . $cat . ‘

‘;

if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post();
$rc = get_post_custom_values(“resource_category”);
$url = get_post_custom_values(“url”);

echo ‘‘;
the_title();
echo ‘
‘;

echo “
“;
the_content();
echo “


“;

endwhile;
endif;
} else {
echo ‘

Resources

‘;

echo ‘ADA Software
‘;
echo ‘ADA Supplies
‘;
echo ‘Brackets and Hangers
‘;
echo ‘Brushes/Brush Products
‘;
echo ‘CAD/CAM Software
‘;
echo ‘Cast Metal Letters and Plaques
‘;
echo ‘CNC Routers
‘;
echo ‘Digital Printers/Software/Cutters
‘;
echo ‘Digital Printing
‘;
echo ‘Engraving Equipment
‘;
echo ‘Gold Leaf
‘;
echo ‘Letters
‘;
echo ‘Paint/Primers
‘;
echo ‘Pinstriping Equipment
‘;
echo ‘Sign Associations
‘;
echo ‘Sign Blanks/Materials
‘;
echo ‘Sign Stakes
‘;
echo ‘Tools/Equipment/Supplies
‘;
echo ‘Vector Art
‘;
echo ‘Vinyl and Film Materials
‘;
echo ‘Wholesale 3D Signage
‘;
}
[/insert_php]

Resources