• Resolved 972 creative

    (@toddedelman)


    Hi Guys

    I’m using the main shortcode on my artists pages (see http://bit.ly/12mGriQ for example).

    The code here would be: [events_list category=’2′ limit=’50’ pagination=1]

    In the EM settings, the default events list formatting is:

    <tr>
    			<td>
                    #M #j, #Y
                </td>
    			<td>
                    #g:#i #a
                </td>
                <td>
                    #_EVENTLINK
                </td>
                <td>
                    {has_location}<a href="#_EVENTURL">#_LOCATIONNAME</a>{/has_location}<br />
                    <i>#_ATT{Notes}</i>
                </td>
                <td>
                    {has_location}#_LOCATIONTOWN, #_LOCATIONSTATE{/has_location}
                </td>
            </tr>

    On another page (see http://bit.ly/18GJwQU), I want to display the same events list, but here I do not want “#_EVENTLINK” to appear.

    Can I achieve this by customizing the shortcode I use here?

    Thanks for your help!
    -Todd

    http://wordpress.org/plugins/events-manager/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    you can try something like

    [events_list category='2' limit='50' pagination=1 format_header="<table>" format_footer="</table>"]
    <tr>
     <td> #M #j, #Y </td>
     <td> #g:#i #a </td>
     <td> #_EVENTNAME </td>
     <td>
      {has_location}<a href="#_EVENTURL">#_LOCATIONNAME</a>{/has_location}<br /> <i>#_ATT{Notes}</i>
     </td>
     <td>
      {has_location}#_LOCATIONTOWN, #_LOCATIONSTATE{/has_location}
     </td>
    </tr>
    [/events_list]
    Thread Starter 972 creative

    (@toddedelman)

    Hi Angelo

    Thanks for your help.

    I understood I need to put the table directly in the page, but the code you provided did not look correct at all (see http://bit.ly/1e5gona). Even after I’d take away the #_EVENTNAME section, something was off with the formatting/styling.

    Any ideas?

    Thanks!

    Hiya,

    Can you paste the full, exact code that you have entered into your settings please? We can then try it out ourselves and see where the issue is.

    Thanks,
    Phil

    Thread Starter 972 creative

    (@toddedelman)

    Ok. Here I go:

    Default event list format header

    <table cellpadding="0" cellspacing="0" class="events-table" >
        <thead>
            <tr>
    			<th class="event-time" width="*">Date</th>
    			<th class="event-time" width="*">Time</th>
    			<th class="event-description" width="19%">Artist</th>
    			<th class="event-description" width="*">Venue</th>
    			<th class="event-description" width="*">Location</th>
    		</tr>
       	</thead>
        <tbody>

    Default event list format

    <tr>
    			<td>
                    #M #j, #Y
                </td>
    			<td>
                    #g:#i #a
                </td>
                <td>
                    #_EVENTLINK
                </td>
                <td>
                    {has_location}<a href="#_EVENTURL">#_LOCATIONNAME</a>{/has_location}<br />
                    <i>#_ATT{Notes}</i>
                </td>
                <td>
                    {has_location}#_LOCATIONTOWN, #_LOCATIONSTATE{/has_location}
                </td>
            </tr>

    Default event list format footer
    </tbody></table>

    This code is used on the main page http://bit.ly/12H1lPQ and pages such as http://bit.ly/12mGriQ. On http://bit.ly/18GJwQU, I want to display the same schedule just without the column titled ‘artist’ (which is #_EVENTLINK).

    Thanks for the help!
    Todd

    Where are these bits of code located? I ask because it looks like they’re wrapped in the html code tag, which shouldn’t happen. I’m wondering if the code is pasted into a page or something?

    Thread Starter 972 creative

    (@toddedelman)

    Event Manager Formatting ( screenshot at http://bit.ly/153PNY2 )

    Custom Page ( screenshot at http://bit.ly/153PVqA )

    Does this help?

    Thread Starter 972 creative

    (@toddedelman)

    Just re-read what you wrote caimin_nwl. I used the code tag only for the purpose of displaying the raw html code here in the forums.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Angelo’s suggestion sounds right to me.

    If all you want to do is change the #_EVENTLINK to #_EVENTNAME then just copy/paste the format between [events_list]…[/events_list] with the relevant change. You don’t even need to include the format_header/footer

    that link you posted yesterday os not working so I can’t see the result

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Customize Shortcode Output’ is closed to new replies.