Some of you don’t want the related downloads below the content, and the widget also fails to do what you want. So, you want a template tag that will let you position the related downloads anywhere on your
You can accomplish this using WordPress’s function,
the_widget. If you want the default output, use:
If you want to specify parameters for this instance, use the following. Set ‘taxcat’ to true to filter the related downloads by category. Or, set it to false to filter by tag.
$inst = array( 'title' => 'You May Also Like', 'number' => 3, 'taxcat' => false, ); the_widget('edd_related_downloads_widget', $inst, $args);
However, the 2 examples above will style it just like the sidebar widget, which is list-style. List-style means that the items are listed, one under each other. If you want this to appear grid-style (side-by-side), like the default related downloads that get added below the content, you have to add the $args parameter, like so (you can change the $inst, but not the $args if you want grid-style):
$inst = array( 'title' => 'You May Also Like', 'number' => 3, 'taxcat' => false,// true to filter by tag, false to filter by category ); $args = array( 'before_widget' => '<div id="isa-related-downloads" class="widget">',// make it grid-style 'after_widget' => '</div>', ); the_widget('edd_related_downloads_widget', $inst, $args);