RyAnaon
Forum Replies Created
-
Forum: Reviews
In reply to: [Woocommerce CSV importer] Lost my timeAnd now, you deserve a second 1 star for this message.
You know, sometimes, something bother you so much, the only thing you do, is just stop using it.
After cleaning 150 products, you don’t want to lost more time.
You can keep calling me an idiot, but it’s the worst thing to do if you want to have any return about the bug.
Good luck with the future of your plugin, but I’ll not be a part of it and I’ll not change my rating now.
Forum: Plugins
In reply to: [Widget Logic] PortugueseAnyone?
Forum: Fixing WordPress
In reply to: Name of templates doesn't correspond anymoreAgain?
Forum: Fixing WordPress
In reply to: Name of templates doesn't correspond anymoreMore informations : I tried again the reparation and asked my hoster to verify on their side, no error for them.
Forum: Hacks
In reply to: Custom Post Type and WP_queryThx again for your time and sorry for the delay with my answer.
I can’t make this works like I want and for the moment, I can’t waste my time!
I’ll let everything like that and come back later, when I could.
I have other problems now, I’ll do another post.
Thank you again!
Forum: Hacks
In reply to: Custom Post Type and WP_queryWith HTML5 there is an input tag type “date” that displays a calendar with no extra coding.
How did I forget that… No problems for the dependencies with that, the people using the admin panel are only using Chrome under my order =)
The problem with the source code isn’t only the “intimidating” part, the fact is that I used 10 days to do exactly what I need while working on all the other work I had to do and it’s pretty boring now.
But if you have an exemple about how to do this, I could use some more time to complete the work.
Is there a specific function to use in WP to store the data as Timestamps like you proposed?
This sounds like a good option here!
And thanks for the syntax, I’ll use it now, I prefer that if I need this variable only here.
You can see how I work in normal time :
<?php get_header(); ?> <div id="primary" class="content-area full-width columns"> <div id="content" class="site-content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php $slogan = get_post_meta($post->ID, 'slogan', true); $theme = get_post_meta($post->ID, 'theme', true); $ship =get_post_meta($post->ID, 'ship', true); $travel =get_post_meta($post->ID, 'travel', true); $departure =get_post_meta($post->ID, 'departure', true); $duration = get_post_meta($post->ID, 'duration', true); $price = number_format(get_post_meta($post->ID, 'price', true), 2, ',','\''); $details = get_post_meta($post->ID, 'details', true); $cabin1 = number_format(get_post_meta($post->ID, 'cabin1', true), 2, ',','\''); $cabin2 = number_format(get_post_meta($post->ID, 'cabin2', true), 2, ',','\''); $cabin3 = number_format(get_post_meta($post->ID, 'cabin3', true), 2, ',','\''); $cabin4 = number_format(get_post_meta($post->ID, 'cabin4', true), 2, ',','\''); $cabin5 = number_format(get_post_meta($post->ID, 'cabin5', true), 2, ',','\''); $company = get_taxonomy('Armateur'); ?> <article class="hentry"> <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?> <header class="entry-header"> <h1 class="entry-title"> <?php the_title(); ?> </h1> <? if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?> <h2> <?php if ($slogan != ''){echo $slogan;} ?> </h2> <h3> <?php if ($theme != ''){echo $theme;} ?> </h3> </header> <div class="entry-content"> <div id="left" style="width: 50%; float: left; padding-right: 10px; text-align: justify;"> <?php the_content(); ?> </div> <div id="right" style="width: 50%; float: right; padding: 5px 5px 5px 10px; background-color: #E7E7E7;"> <p> <b>Bateau</b> : <?php echo $ship ; ?> </p> <p> <b>Trajet</b> : <?php echo $travel ; ?> </p> <p> <b>Départ</b> : <?php echo $departure ; ?> </p> <p> <b>Durée</b> : <?php echo $duration ; ?> jours </p> <p> <b>Prix de départ</b> : <?php echo $price ; ?> </p> </div> <div id="details" style="clear: both;"> <h3>Détails</h3> <p style="text-align: justify;"> <?php echo $details; ?> </p> </div> <table style="width:100%; text-align: center;"> <tr> <td style="text-align: center; font-weight: bold; background-color: #E7E7E7;"> Cabine 1 </td> <td style="text-align: center; font-weight: bold; background-color: #E7E7E7;"> Cabine 2 </td> <td style="text-align: center; font-weight: bold; background-color: #E7E7E7;"> Cabine 3 </td> <td style="text-align: center; font-weight: bold; background-color: #E7E7E7;"> Cabine 4 </td> <td style="text-align: center; font-weight: bold; background-color: #E7E7E7;"> Cabine 5 </td> </tr> <tr> <td style="text-align: center; background-color: #E7E7E7;"> <?php echo $cabin1 ; ?> </td> <td style="text-align: center; background-color: #E7E7E7;"> <?php echo $cabin2 ; ?> </td> <td style="text-align: center; background-color: #E7E7E7;"> <?php echo $cabin3 ; ?> </td> <td style="text-align: center; background-color: #E7E7E7;"> <?php echo $cabin4 ; ?> </td> <td style="text-align: center; background-color: #E7E7E7;"> <?php echo $cabin5 ; ?> </td> </tr> </table> </div> </article> <?php endwhile; // end of the loop. ?> </div><!-- #content .site-content --> </div><!-- #primary .content-area --> <?php get_footer(); ?>Forum: Hacks
In reply to: Custom Post Type and WP_queryThanks for the answer!
I looked at the query.php file and I’m not sure if I will be able to modify this like I need without broke all my WP =D
But yes, I want to order the archive page by “Departure” which is a meta_data stored on a string.
Is there a function to display a little calendar for this in the administration and replace the
<p><label> Date départ :</label><br /> <input type="text" name="departure" value="<?php echo $departure; ?>" /></p>?
And for the second message, I did it like that :
<?php $departure = get_post_meta($post->ID, "departure"); ?> <?php echo '<h3>'.$departure[0].'</h3>'; ?>It returns an array so I fixed the little “mistake” with your echo.
I’ll search for someone who knows how to do what I need and post it here if we have a solution!
Thanks again!