• Resolved napalmx37

    (@napalmx37)


    I’ve setup a POD (Horses) with taxonomy (Sales).

      I’m trying to:

    1. sort by Lot
    2. Output the various sales by date (Set in the Sales pod)
    [pods name="sales"]
    <h2>{@name}</h2>
    <i>{@description}</i>
    <i>{@date} [if @dateto]to {@dateto}</i>
    <i>{@location}</i>
    [/pods]
    <table border='1' cellspacing='0' cellpadding='0' width='100%'>
    <tr>
    		<th>Lot</th>
    		<th>Sex</th>
    		<th>Name</th>
    		<th>Sire</th>
    		<th>Dam</th>
    		<th>Photo</th>
    		<th>Pedigree</th>
    </tr>
    [pods name="horses" orderby="lot"]
    	<tr>
    		<td align='center'>{@lot}</td>
    		<td align='center'>{@sex}</td>
    		<td align='center'>{@post_title}</td>
    		<td align='center'>{@sire}</td>
    		<td align='center'>{@dam}</td>
    		<td align='center'>
    			[if @photo]
    			<a href='{@photo}'><img src='https://www.domain.co.za/images/stud/camera.gif' border='0'></a>[else] - [/if]
    		</td>
    		<td align='center'>
    			[if @pdf]<a href='{@PDF}' target='_blank' rel="noopener">Download</a>[else] - [/if]
    		</td>
    	</tr>
    [/pods]
    </table>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sorting’ is closed to new replies.