Alin Ionut
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingPerfect. And now my last problem is that I can’t display this custom field in php widget. Is wordpress or me?
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingbut I don’t want the output to be “BETWEEN” , I want to be equal with those dates. “=”
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingand is it possible to declare multiple exact dates? 4 example 2013-12-31 , 2014-12-31, and so on.
Forum: Plugins
In reply to: [Custom Content Shortcode] coments form post by tageverything works perfect, but now I want to know is I can retrieve a custom message if there’s no comment in any article with that specific tag.
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcoming<?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $date_args = array( 'type' => 'month', // month - year, month, day 'start_from' => 'type', // today, type - Start from today, or from first/last day of month/year 'future_past' => 'past', // past, future - Past or future date range 'offset' => 1, // 0 = current month (1 = one month from start date etc...) 'duration' => 1, // duration of 1 month (1 or higher) ); // get the BETWEEN dates $dates = get_between_clause_dates( $date_args ); $args= array( 'post_type' => array( 'page' ), 'posts_per_page' => 1000, 'meta_key' => 'data-lansare', 'orderby' => 'meta_value', 'order' => 'ASC', 'meta_query' => array( array( 'key' => 'data-lansare', 'value' => $dates, 'compare' => 'BETWEEN', 'type' => 'DATE', ) ) ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <div class="lastgameson-absolute"> <p><a href="<?php the_permalink() ?>" rel="bookmark"> <?php the_post_thumbnail( 'latestgamingupdates', array('title' => ''.get_the_title().'', 'class' => 'review')); ?></a></p> <div class="lastgameson-text"> <h2 class="articletitle"> <a href="<?php the_permalink() ?>" rel="bookmark"> <?php the_title(); ?></a> </h2> <p> </p> </div> </div> <?php endwhile; } ?>
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingEverything works perfect, truly thank you for your time and patience. I see that this works even if the pages there not in a specifric category. But this is a problem, because if I put one of these codes inside that php widget, it display nothing. why?
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingcan you help me and with the rest of the codes?
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingsorry, not so good with php… this one work well. thanks
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingI want another small thing
I want to retrieve the same pages with that custom field date “data-lansare” but to filter them by: show just last month, show next month, past 30 days, this month, next year. It is possible?
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingYou made my day man, thank you.
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingI solve the problem of editing them, now I want to display in pages custom field “date-lansare” not as 2013-11-17, but as 17 Noiembrie 2013, as I say above.
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingI have backup my database.
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingIanuarie
Februarie
Martie
Aprilie
Mai
Iunie
Iulie
August
Septembrie
Octombrie
Noiembrie
DecembrieForum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingLet’s say I’ll modify them somehow, but now how I retrive that custom field value to display from Y-m-d to j F Y?
This line of code
<?php if ($custom_date = get_post_meta($post->ID,'data-lansare',true)): ?> - <img src="https://www.digitalgames.ro/calendar.png" alt="Data de lansare" width="14" height="14" title="Dat? de lansare" style="vertical-align:top;"> <span style="color:#FF0000"><?php echo $custom_date; ?></span>
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingalmost 1k, it will take awhile to modify them if there’s no solution.