ooomes
Forum Replies Created
-
Forum: Plugins
In reply to: Custom Post Type for Smart Archives Reloaded pluginHi jhodara,
am looking for the same answer…
Scribu, it will be great if you could put some light on this.
Thanks!
Hi,
tried a lot of things but no luck…
Any thoughts/suggestions on to achieve this will be a great help for me.
The output hoping to get:
Upcoming Events
-
Upcoming Event Item 1
Upcoming Event Item 2
Upcoming Event Item 3Past Events
-
Past Event Item 1
Past Event Item 2
Past Event Item 3Any new approach to achieve this along with working links when clicked on event title to view detail event??
Thanks!
Hi Marcus,
do you mind providing an example snippet as reference to my code??
Thanks!
Hi agelonwl,
my code:
<?php /* Template Name: Events */ get_header(); the_post(); ?> <!-- EOF Header --> <div id="container"> <div class="page-content"> <div class="content-main events"> <h2>Events</h2> <?php the_content(); ?> <h3>Upcoming Events</h3> <?php if (class_exists('EM_Events')) { echo EM_Events::output( array('limit'=>0,'scope'=>'future') ); } ?> <h3>Past Events</h3> <?php if (class_exists('EM_Events')) { echo EM_Events::output( array('limit'=>20,'scope'=>'past', 'pagination' => 1) ); } ?> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>Hi Marcus, Regarding the above code, I get a list of all events because of the_content() function and get the past and future events list too and the single page works but keeps the Past and Future events lists at the bottom which i don’t need on single page. Since i don’t need the default list of events showing up due to the_content() function, i comment that wordpress function and just use the EM codes for past and future events then the single page does not work. The URL changes to http://SITE_URL/events/event/EVENT_NAME/ but the page stays same (Past and Future Events List) with no event detail content.
Hope this explains my issue…
Any help is highly appreciated.
Thanks!
no luck…
let me explain my recent settings:
I have a page for events called “Events” with custom WP template called “Events”
– EM Settings:
– Events Page -> Events
– Show Events page in lists? -> No
– Disable title rewriting? -> NoAnd am using template tags in my event template “template-events.php” to show all the future events in one section and then all the past events in another section.
The thing is that it is working but when i click on the listed event title to go to the detail page, nothing happens. I mean the URL changes to eg. http://abc.com/events/event/EVENT_TITLE but there is no detail rather shows the same list of Future and Past Events. Even i tried with define(‘EM_DISABLE_PERMALINKS’, true); but still the same case, the url changes to http://abc.com/events/?event_id=8
Please need some light…
Thanks!
I am having the same issue… but it works with HTML Viewer’s link button which is quite odd for the clients with less/zero HTML/WordPress knowledge. It also works if TinyMCE’s advanced link option is enabled but doing that will disable the WP 3.1’s internal link facility. A quick fix to this will be a great help.
Thanks!
Am experiencing the same issue.
Will be a great help if fixed.
Thanks!