Sure, this page is currently implemented in something else, I’m trying to reproduce it in WP:
http://www.comm5.com.br/novo/produtos-categoria/placas-seriais-pci-express-33/2sg-pci-e-153
On the right there is a sidebar with 3 link images, one for Catalogs (Catalogo), Manuals (Manuais) and Drivers. Each can either be a single download file (pdf or zip) or have “suboptions” such as “Windows”, “Linux”, etc. So, clicking one of them I would like to get something similar (or better) that this:
http://www.comm5.com.br/novo/departamentos/drivers/153
My current implementation of sidebar.php for WP contains this to get the link:
function comm5_get_download_link($property) {
// Query custom property value
$propertyValue = get_post_custom_values($property);
$wpdm_package = wpdm_get_package(intval($propertyValue[0]));
if ( count($wpdm_package) > 0 ) {
return esc_url( $wpdm_package['page_url'] );
} else if ( count($propertyValue) > 0 ) {
return esc_url( get_permalink( get_page_by_path( $propertyValue[0] ) ) );
} else {
return '';
}
}