elyonline
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Athletics] Front End Submit ResultHey there,
I am running 4.7.2 and 1.1.5 but I keep getting ‘Sorry, you are not allowed to access this page.’ Any ideas what might be causing this?
Thank you.
Forum: Plugins
In reply to: [AM Events] Easier examples of integrationHi there,
I would like to use what is generated in the sidebar of AM Events into my main frontpage that doesn’t warrant a sidebar.
Is there a way to do this please?
Thanks
Forum: Plugins
In reply to: [AM Events] Easier examples of integrationThanks for the heads up. The widget shows today’s events though.
Will play around with time. Thank you
Forum: Plugins
In reply to: [AM Events] Easier examples of integrationMy bad. Realised I didn’t put the PHP start tag at the beginning.
For some reason though I am only getting 2 results. For instance it is omitting today’s events. How do I show them?
Forum: Plugins
In reply to: [AM Events] Easier examples of integrationThanks for that Atte,
I tried the code but there appears to be something missing as the code doesn’t work.
I really appreciate the support you have given ??
Forum: Plugins
In reply to: [AM Events] Easier examples of integrationJust realised. The list is showing later dates first, how do I show nearest dates first?
<?php $args = array( 'post_type' => 'am_event', 'post_status' => 'publish', ); $the_query = new WP_Query($args); if ($the_query->have_posts()) { while ($the_query->have_posts()) { $the_query->the_post(); $postId = $post->ID; // GET EVENT DATA $startDate = am_get_the_startdate('l j F'); // DISPLAY EVENT CONTENT echo '<strong>' . $startDate . '</strong>'; the_title( '<h3 style="color:red;">', '</h3>' ); the_content(); } } ?>
Many thanls,
KarlForum: Plugins
In reply to: [AM Events] Easier examples of integrationManaged it myself. Just needed belief ??
Forum: Plugins
In reply to: [AM Events] Easier examples of integrationThank you Atte.
I tried the code you posted, but it isn’t working for me. Please see below my bare minimum code template.
What actual code do I paste after my ‘event code here’ note?
<?php /** * Template Name: Runner Events * * A custom page template without sidebar. * * The "Template Name:" bit above allows this to be selectable * from a dropdown menu on the edit page screen. * * @package WordPress * @subpackage purepress * @since purepress 1.0 */ $htype = ot_get_option('pp_header_menu'); get_header($htype); wp_reset_query(); ?> <!-- Titlebar ================================================== --> <section id="titlebar"> <!-- Container --> <div class="container"> <div class="eight columns"> <h2><?php the_title(); ?> <?php $subtitle = get_post_meta($post->ID, 'pp_subtitle', true); if($subtitle) echo "<span>".$subtitle."</span>";?> <?php edit_post_link( __( 'Edit', 'purepress' ), '<span class="edit-link">', '</span>' ); ?> </h2> </div> <div class="eight columns"> <?php if(ot_get_option('pp_breadcrumbs') != 'no') echo dimox_breadcrumbs(); ?> </div> </div><!-- Container / End --> </section> <!-- Content ================================================== --> <?php $layout = ot_get_option('pp_blog_layout'); ?> <!-- Container --> <div class="container <?php if($layout == 'left-sidebar') { echo "page-left"; }?>"> <div class="twelve <?php if($layout == 'left-sidebar') { echo "alt2"; } else { echo "alt"; } ?> columns"> <!-- Event Code To Go Here ================================================== --> </div> <!-- Sidebar ================================================== --> <?php get_sidebar(); ?> </div> <!-- Container / End --> <?php wp_reset_query(); get_footer(); ?>
Thank you so much for any additional guidance ??
Karl
Forum: Plugins
In reply to: [AM Events] Easier examples of integrationHey there, I have just come across your wonderful event plugin. It is ideal for my running club’s training events.
I downloaded your demo files, but I have to confess to not being very good with code. Are you able to tell me where your demo code goes the the page template below please? I was looking at the page-event-blog file. Essentially, I just want a page to show all upcoming events.
<?php /** * The template used for displaying page content in page.php * */ ?> <!-- Titlebar ================================================== --> <section id="titlebar"> <!-- Container --> <div class="container"> <div class="eight columns"> <h2><?php the_title(); ?> <?php $subtitle = get_post_meta($post->ID, 'pp_subtitle', true); if($subtitle) echo "<span>".$subtitle."</span>";?> <?php edit_post_link( __( 'Edit', 'purepress' ), '<span class="edit-link">', '</span>' ); ?> </h2> </div> <div class="eight columns"> <?php if(ot_get_option('pp_breadcrumbs') != 'no') echo dimox_breadcrumbs(); ?> </div> </div> <!-- Container / End --> </section> <!-- Content ================================================== --> <!-- Container --> <div id="post-<?php the_ID(); ?>" <?php post_class('container'); ?> > <div class="twelve alt columns" > <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'purepress' ), 'after' => '</div>' ) ); ?> <?php // If comments are open or we have at least one comment, load up the comment template if ( comments_open() || '0' != get_comments_number() ) { echo '<div class="page-comments">'; comments_template( '', true ); echo '</div>'; } ?> </div> <?php get_sidebar(); ?> </div> <!-- Page Content / End -->
I appreciate any help.
Thank you,
KarlForum: Plugins
In reply to: [Analyticator] google analyticator will not load with new wp 3.5 updateHey all,
When I add my GA code I get this:(cas:72) Google Analyticator was unable to authenticate you with Google using the Auth Token you pasted into the input box on the previous step.
This could mean either you pasted the token wrong, or the time/date on your server is wrong, or an SSL issue preventing Google from Authenticating.
Try Deauthorizing & Resetting Google Analyticator.
Tech Info 400:Error fetching OAuth2 access token, message: ‘invalid_grant’
Any ideas?
Forum: Themes and Templates
In reply to: single.php headacheNo one able to comment?
Forum: Alpha/Beta/RC
In reply to: Menus: How do you create a home button with active state?Just noticed that ‘current_page_item’ does not work for custom menu items. Any way over this?
Forum: Fixing WordPress
In reply to: help on how to randomize posts@ vtxyzzy
My apologies! I just realised I missed out the &orderby=rand’
All is working just dandy now. Thank you
I really appreciate the help you have supplied ??
Forum: Fixing WordPress
In reply to: help on how to randomize posts@ vtxyzzy
Thank you again, alas, it did not work. Thank you for your time.
Here is my code now: https://paste-it.net/public/d0e48e3/
Not sure what other options I can take.
Forum: Fixing WordPress
In reply to: help on how to randomize posts@ vtxyzzy
Tried:
‘$my_query = new WP_Query(‘category_name=video&caller_get_posts=1&caller_get_posts=1&orderby=rand’);’
This just lists every ‘video’ post though. Not too sure what you mean’t by a break statement though.
Again, thank you for your help.
@ alism
Where you from?