raybeam
Forum Replies Created
-
k,so… what is the solution?
Thanks,
That’s something I can try!
That doesnt help me, explain how I can fix this issue?
Forum: Plugins
In reply to: [Polylang] How to get page archives into translations?Forget it! It would have helped if I had created an actual post in THAI!!!
It works now thanks!
Forum: Plugins
In reply to: [The Events Calendar] Create a custom loop for eventsThanks, but that wasn’t quite what I was looking for. What I did in the end in case anyone else is trying to do this is:
<?php $args = array( 'post_type' => 'tribe_events', 'posts_per_page' => 3 ); $query = new WP_Query($args); if($query->have_posts()) : while($query->have_posts()) : $query->the_post(); ?> // do custom template stuff here <?php endwhile; endif; wp_reset_postdata(); ?>
So my problem is partially solved but I have a unique scenario where I want to show recent events, not just upcoming events. How can I do that?
Hi,
Sorry, I didnt explain myself properly. I meant I’m using Woocommerce and the variable products don’t get updated or changed when added to the shopping cart. I might just have to go for a simple fix which is to link through to the product page rather than allow adding the product from the loop.
Thanks
Thanks, that works. Can you explain to me why that works above the other method?
Is it because I have the modal in there?
<li class="ct-product"> <?php the_post_thumbnail(); ?> <div class="ct-product-text"> <div class="inner-product-text"> <h4><?php the_title(); ?></h4> <?php $attributes = get_the_terms( $product->id, 'pa_color'); if ( $attributes && ! is_wp_error( $attributes ) ) : foreach ( $attributes as $attribute ) { echo "<p>" . $attribute->name . "</p>"; } endif; ?> <div class="ct-product-buttons"> <span class="ct-product-button expand-prod"><a data-toggle="modal" data-target="#<?php echo get_the_ID(); ?>" href="#"></a></span> <span class="ct-product-button share-prod"> <a href="#"></a> <div class="social-sharing-icons"> <?php echo pixelers_social_links(); ?> </div> </span> </div> </div> </div> </li> <div class="modal fade" id="<?php echo get_the_ID(); ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel"><?php the_title(); ?></h4> <?php $attributes = get_the_terms( $product->id, 'pa_color'); if ( $attributes && ! is_wp_error( $attributes ) ) : foreach ( $attributes as $attribute ) { echo "<p class=\"modal-sub-title\">" . $attribute->name . "</p>"; } endif; ?> </div> <div class="modal-body"> <div class="row"> <div class="col-md-6"><?php the_post_thumbnail(); ?></div> <div class="col-md-6"><?php the_content(); ?></div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div>
No, I can click the button as may times as I want after the final post loaded and it remains there. You can see the demo here: https://www.charlesalandesign.com/chaostackle/products/
Yes, that’s what I’m saying. I have 9 posts and when they all load the button is still there.
Forum: Fixing WordPress
In reply to: WordPress website has been attacked by hackersThanks Samuel,
I took your advice and integrated Cloudflare. I’m not sure if it will remove the suspicious url but it seems it will help to speed up my site.
I’ll keep an eye on it.
Thanks again!
Forum: Plugins
In reply to: [Firelight Lightbox] Easy Fancy Not Working on client siteThanks RavanH,
maybe I need to update my vesion of woocommerce? What would cause that and how can I fix it?
Thanks
Forum: Fixing WordPress
In reply to: WordPress Customizer Screen BrokenHi Jose,
thanks for your reply. In the end I solved the problem by deleting all the functions in my functions.php one by one and seeing it made a difference. The problem turned out to be, strangely, that I had used a
<strong> tag </strong>
in the register_sidebar description, i.eregister_sidebar( array( 'name' => __('Carousel Slogan', 'TNP'), 'id' => 'carousel-slogan', 'description' => __('Display a slogan <strong>under the carousel</strong>.', 'TNP'), 'before_widget' => '<div class="carousel-slogan-text">', 'after_widget' => '</div>', 'before_title' => '', 'after_title' => '' ));
When I removed the strong tags, everything went back to normal. Very strange!
Forum: Fixing WordPress
In reply to: WordPress Customizer Screen BrokenHi esmi,
No, it seems when I install the twenty fourteen theme, the problem goes away, so it’s obviously related to theme in some way. Can you point me to most likely reason?
My guesses:
1) I have duplicated a style (though admin styles are separate, so I can’t imagine this is the cause)
2) I have written a function that is broken
3) I have created an item in the customiser that conflicts
4) I deregistered jquery and reregistered it as the online version (though I already tried changed this)I’m guessing I’ve done something faulty some where, I could perhaps try using the theme checker.
Forum: Plugins
In reply to: [Maps Builder - Google Maps Plugin] How To add Maps?Hi man,
yeah I pretty much realised after I’d posted this question that it wasn’t showing up in the menu cos it was too far down. I just changed it’s position and I was good to go. Now I agree, it really is a great plugin. Solved my problem.
Another question. How can I use the google api to style the map. I know how to adjust the settings for google maps api but I didn’t know the best way to do this with your plugin. I know it has some built in themes but I’d rather just style myself.
Thanks!