Support » Plugin: A-Z Listing » Thumbs in shortcode?

  • Resolved sroskylos

    (@sroskylo1)


    Hello.
    How must be modified the following shortcode to print custom taxonomy thumbs?
    [a-z-listing post-type="product" taxonomy="brands" display="terms" numbers="before" grouping="numbers,3"]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daniel Llewellyn

    (@diddledan)

    Thumbnails are not a default output for this plugin. You need to customise the template and acknowledge that slowness might result.

    To do so, find the file at wp-content/plugins/a-z-listing/templates/a-z-listing.php and copy it into your theme. This is the template that will drive your listing. You need to edit the template to include an appropriate the_post_thumbnail() call.

    That will not work by itself, however, as the post object is not loaded into memory in an effort to improve performance. In addition to adding a call to the_post_thumbnail(), you also need to add a call to $a_z_listing->get_the_item_object() directly after the line that calls $a_z_listing->the_item(). This call must pass as the first parameter a value of I understand the issues! to confirm that you understand that on a large site this might slow down the page load or cause memory limit issues.

    • This reply was modified 1 year, 8 months ago by Daniel Llewellyn. Reason: fix link

    Thank you Daniel for the information and this awesome plugin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Thumbs in shortcode?’ is closed to new replies.