Fi Fi P
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 403 ForbiddenThank you for your quick reply, I will test those things now!
Thanks,
I did actually find that link and it worked great for the category title but I want to specify my events area, image, title, etc and when I use #_CATEGORYNEXTEVENTS it is the same as my whats on page but I want to customise the ones on the categories pages, the images also outputted very blurry and I would need the message area if there were no events.Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Search brokenNo see above
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Search brokenWe have found a fix!
In case someone else has this problem, I was missing the IF statement:<?php /* * Default Events List Template * This page displays a list of events, called during the em_content() if this is an events list page. * You can override the default display settings pages by copying this file to yourthemefolder/plugins/events-manager/templates/ and modifying it however you need. * You can display events however you wish, there are a few variables made available to you: * * $args - the args passed onto EM_Events::output() * */ if (ICL_LANGUAGE_CODE == 'cy') { if (empty($args['search'])) { echo do_shortcode('[events_list] <div class="event-item"> {has_image}#_EVENTIMAGE{400, 300}{/has_image} {no_image}<img src="/wp-content/themes/CMF/images/logo400x300v2.jpg" alt="cowbridge music festival"/>{/no_image}<br/> <div class="concert">#_EVENTLINK<br/></div> <div class="e-date">#_EVENTDATES, #_EVENTTIMES<br/></div> <div class="e-more"><a href="#_EVENTURL">Mwy ></a></div> <div class="conc-ex">#_ATT{event_summ}</div> </div> [/events_list]'); } else { echo EM_Events::output($args); } } else { if (empty($args['search'])) { echo do_shortcode('[events_list] <div class="event-item"> {has_image}#_EVENTIMAGE{400, 300}{/has_image} {no_image}<img src="/wp-content/themes/CMF/images/logo400x300v2.jpg" alt="cowbridge music festival"/>{/no_image}<br/> <div class="concert">#_EVENTLINK<br/></div> <div class="e-date">#_EVENTDATES, #_EVENTTIMES<br/></div> <div class="e-more"><a href="#_EVENTURL">More ></a></div> <div class="conc-ex">#_ATT{event_summ}</div> </div> [/events_list]'); } else { echo EM_Events::output($args); } } ?>
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Search brokenForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Image sizingThat’s a shame, is it possible to position the image to be centralised?
I have an ACF field ‘event_summ’
but when I add it to my events list (at the bottom), it displays blank<?php echo do_shortcode('[events_list] <div class="event-item"> {has_image}#_EVENTIMAGE{400, 300}{/has_image} {no_image}<img src="/wp-content/themes/CMF/images/logo400x300v2.jpg" alt="cowbridge music festival"/>{/no_image}<br/> <div class="concert">#_EVENTLINK<br/></div> <div class="e-date">#_EVENTDATES, #_EVENTTIMES<br/></div> <div class="e-more"><a href="#_EVENTURL">More ></a></div> <div class="conc-ex">#_ATT{event_summ}</div> </div> [/events_list]'); ?> <?php } ?>
Am I missing something?
Forum: Themes and Templates
In reply to: Twenty Fifteen Top MenuI have tried this and it adds my nav to the top but as a list not a nav menu so the submenu is just added to the list
Forum: Fixing WordPress
In reply to: PHP issue showing the word array on home pageThat is it! Thank you SO much, you saved me hours of trial and error, I was convinced I had a div in the wrong place. Have a great Friday! xxxx
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Working with WPMLI have:
WPML Media
WPML Multilingual CMS
WPML Sticky Links
WPML String Translation
WPML Translation Management
Events Manager and WPML CompatibilityI have got the Months translating when I updated wordpress but the days don’t translate.
For the Main events list I want to change a word in Welsh, can php be added to this as I seem to break it everytime`<?php
/*
* Default Events List Template
* This page displays a list of events, called during the em_content() if this is an events list page.
* You can override the default display settings pages by copying this file to yourthemefolder/plugins/events-manager/templates/ and modifying it however you need.
* You can display events however you wish, there are a few variables made available to you:
*
* $args – the args passed onto EM_Events::output()
*
*/
$args = apply_filters(’em_content_events_args’, $args);if( get_option(‘dbem_css_evlist’) ) echo “<div class=’css-events-list’>”;
echo EM_Events::output(array(‘format’=> ‘
<div class=”event-item”>
{has_image}#_EVENTIMAGE{400, 300}{/has_image}
{no_image}<img src=”/wp-content/themes/CMF/images/logo400x300v2.jpg” alt=”cowbridge music festival”/>{/no_image}
<div class=”concert”>#_EVENTLINK
</div>
<div class=”e-date”>#_EVENTDATES,
#_EVENTTIMES
</div><div class=”e-more”>
<?php if
(ICL_LANGUAGE_CODE == ‘cy’
) { ?>
<?php echo ‘Mwy > ‘; ?>
<?php } else { ?>
<?php echo ‘More > ‘; ?>
<?php } ?>
</div><div class=”conc-ex”>#_EVENTEXCERPT{15,…}</div>
</div>‘, ‘limit’=>20, ‘pagination’=>1));
if( get_option(‘dbem_css_evlist’) ) echo “</div>”;
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Working with WPMLEvents Manager 5.5.6
WPML Translation Management 1.9.11neither say there are any updates
Forum: Plugins
In reply to: Category pageI fixed it with the below code!
<div class="row"> <?php global $post; if(is_category() || is_single()){ foreach(get_the_category() as $category) { $current = $category->cat_ID; $current_name = $category->cat_name; $myposts = get_posts(array('category__in' => array($current))); } } foreach($myposts as $post) : setup_postdata($post); ?> <div class="col-xs-3"> <div id ="top-news-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div> </div> <?php endforeach;wp_reset_query(); ?> </div>
My issue now is adding a message if there are no posts in that category. I tried:
<?php endwhile; else: ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; ?>
But that gives me the dreaded white screen, any help would be greatly appreciated!
Forum: Fixing WordPress
In reply to: Edit CSS for active links, taxonomy MenuThanks for getting back to me, the problem I have is I want the active item being viewed to stand out in the title list and if I specify by ID it won’t work if the client adds more taxonomy options.
This is a link to the site
https://www.sgtesting.co.uk/blackwood/The slider at the top is set to show the Image, Title and Date of Events in date order and it is working for most of them but if you select the link above, the date isn’t showing for some.
So, Joe Bloggs and Dancing have their Dates showing but none of the others. Very strange. Thanks for getting back to me,
FionaSorry about that!
`
<div id=”top-flexslider-event”>
<div class=”flexslider-event”>
<div id=”carousel”>
<?php
// args$args = array(
‘numberposts’ => -1,
‘post_type’ => ‘event’,
‘meta_query’ => array(
array(
‘key’ => ‘_start_ts’,
‘value’ => current_time(‘timestamp’),
‘compare’ => ‘>=’,
‘type’=>’numeric’
)
)
);// get results
$the_query = new WP_Query( $args );// The Loop
?>
<?php if( $the_query->have_posts() ):global $post;
$EM_Event = em_get_event($post->ID, ‘post_id’);?><?php setup_postdata(); ?>
<ul class=”slides”><?php while ( $the_query->have_posts($post->ID) ) : $the_query->the_post($post->ID); ?>
<div class=”slide-content”>
<div class=”slide-title”>
“><?php the_title(); ?></br>
<?php the_date(); ?></div>
<?php the_post_thumbnail(‘e-slide’, array()); ?>
</div><?php endwhile; ?>
<?php wp_reset_postdata();?>
<?php endif; ?><?php wp_reset_query(); // Restore global post data stomped by the_post(). ?>
</div><!– #carousel –>
</div><!– .flexslider-event –>
</div><!– #top-flexslider-event –>