mogito
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Evenets calendar listing<?php global $post; $all_events = tribe_get_events(array( 'eventDisplay'=>1, 'posts_per_page'=>-1 )); foreach($all_events as $post) { setup_postdata($post); ?> <span class="Event-Date"><?php the_date(' F j, Y'); ?></span> <?php the_title(); ?> <?php } //endforeach ?> <?php wp_reset_query(); ?>
Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Evenets calendar listingOoooh, thats strange:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
Forum: Plugins
In reply to: [Events Calendar] [Plugin: Events Calendar] List of events under calander.Hey kmehart. I figured out how to do this actually with the available template tags.
Just open up the template that you are using for the page and use this within the loop after <?php the_content(); ?>
<?php global $post; $all_events = tribe_get_events(array( 'eventDisplay'=>'all', 'posts_per_page'=>-1 )); foreach($all_events as $post) { setup_postdata($post); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <div class="event-excerpt"> <?php the_excerpt(); ?> </div> <?php echo tribe_event_format_date( false, 'D. M j, Y' ); ?> <?php } //endforeach ?> <?php wp_reset_query(); ?>
Hope it helps you
Mogito
Forum: Plugins
In reply to: [Custom Field Template] Field not being picking up RSSwhat am i doing wrong here?? hmmmm…….?
massive headache! ??
Forum: Plugins
In reply to: [Custom Field Template] Field not being picking up RSSTim,
i added this code to try and add a custom field to my feed but im having no luck…! can you see whats wrong?
function wpbeginner_postrss($content) { global $wp_query; $postid = $wp_query->post->ID; $customimage = get_post_meta($post->ID, 'Images', true); if(is_feed()) { if($customimage) { $content = $content . $customimage ; } else { $content = $content; } } return $content; } add_filter('the_excerpt_rss', 'wpbeginner_postrss'); add_filter('the_content', 'wpbeginner_postrss');
Forum: Plugins
In reply to: [Custom Field Template] Field not being picking up RSSThanks Tim.
i’l give this a try. Yup RSS can be a pain testing ??
Cheers for your time!
Struan
Forum: Fixing WordPress
In reply to: A helping hand.Woo…it works – your a legend!
So….i guess i need to remember to call the global post variable.
i WILL remember this for next time.
Thanks for your time esmi.
Struan
Forum: Fixing WordPress
In reply to: A helping hand.Hi Esmi.
Hrmmmmm………well….the short answer is, i don’t know.
Appologies for the ignorance but I took the get_post_meta() function from my theme template – where it works fine, BUT ….now im realising that’s because it was within the loop. Woops.
…..How would i get this to work as if it were inside the loop?
HUGE newbie to php – struggling through….
Forum: Plugins
In reply to: [Custom Field Template] Field not being picking up RSSCheers for the response Tim.
Ok i know what you mean. im just trying to get to grips with filters and hooks at the moment.
I have this code added to my functions file. This is to ADD a custom field to the content but it doesn’t seem to work. Can you see anything wrong with this code?
function added_content($content) { $customimage = get_post_meta($post->ID, 'Images', true); $content = $content . $customimage ; return $content; } add_filter( 'the_content', 'added_content' );
Thanks again for your help!
Thanks for your reply mate. I’l give it a look!
Why has nobody answered this post?? seems like a VERY good idea to me – did you ever find a solution Chodorowicz???
currently having the same issues – AHHHHHH!!
mogito
Forum: Plugins
In reply to: Multiple Content Blocksit ALSO does not support custom post types – BOOOOOOOOO!! ??
This really needs fixed – this plugin has brilliant potential!
Forum: Plugins
In reply to: Adding Slider to a list of postsHmmmmmmm….. maybe that sounded a bit complicated.
In brief:
How could i add jQuery cycle ( slide right to left effect ) to single posts “next post” button?
is there any way? or does this sound mental…?