Alin Ionut
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingworks like a charm, but now I have another problem. My custom fields on the rest of the pages there are not like this page “2014-01-13” there are “13 Ianuarie 2014”. Is it possible to work? to convert them from j F Y to Y-m-d for thist to work?
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingbuyaaaa mann, https://naufragiat.digitalgames.ro/category/test/ here it’s working, let’s see on the main site:)
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingAre normal pages, and with plugin “Ninja Pages, Categories, and Tags” I put them on a category arhive.
I have test this on another wordpress, and same, not working: https://naufragiat.digitalgames.ro/category/test/
Here there are few plugins, almost wordpress default.
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingNope, nothing. https://www.digitalgames.ro/lansari-2/
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingThat is the plugin. I have try the code in a category
https://www.digitalgames.ro/lansari-2/
and says there’s no post in it.
The page https://www.digitalgames.ro/quantum-break/ is in that categoryy and have custom field “2014-01-13”.
here’s the code from category page
<?php get_header(); ?> <?php include(TEMPLATEPATH . '/archive-sidebar.php'); ?> <!-- Begin Left Column --> <div id="uscolumnsingle-cat"> <div class="1wrapperst"> <div class="2wrappernd"> <div class="uscontinue"> <?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $args= array( 'posts_per_page' => 2, 'meta_key' => 'data-lansare', 'orderby' => 'meta_value', 'order' => 'ASC', 'meta_query' => array( array( 'key' => 'data-lansare', 'value' => date( "Y-m-d" ), 'compare' => '>=', 'type' => 'DATE', ) ) ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <a href="<?php the_permalink() ?>" rel="bookmark"> </a> <div id="slider2" class="spotlightwrapperbig-arhivapag"> <div id="test-data"> <?php if (in_category('18')) { ?><a href="https://www.digitalgames.ro/free-to-play/" title="Jocul este free-to-play ?i poate fi desc?rcat de pe pagina produc?torului gratuit"style="color:#FFFF00; font:bold 13px Arial">Free to Play</a> - <?php }else { ?> <?php } ?> <?php echo 'Gen: '; foreach((get_the_category()) as $childcat) { if (cat_is_ancestor_of(37, $childcat)) { echo '<a href="'.get_category_link($childcat->cat_ID).'">'; echo $childcat->cat_name . '</a> ' ; }} ?> <?php echo ' - Platform?: '; foreach((get_the_category()) as $childcat) { if (cat_is_ancestor_of(1112, $childcat)) { echo '<a href="'.get_category_link($childcat->cat_ID).'">'; echo $childcat->cat_name . '</a> '; }} ?> <?php echo ' - Produc?tor: '; foreach((get_the_category()) as $childcat) { if (cat_is_ancestor_of(1210, $childcat)) { echo '<a href="'.get_category_link($childcat->cat_ID).'">'; echo $childcat->cat_name . '</a> '; }} ?> <?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> <?php endif; ?> <?php if ($custom_date = get_post_meta($post->ID,'aawebsite',true)): ?> - <a href="<?php echo $custom_date; ?>" target="_blank">Web</a></span> <?php endif; ?> <?php edit_post_link(' - Edit'); ?> </div> <div id="test-data2"><img src="<?php echo catch_that_image() ?>" width="115" height="160" style="vertical-align:top; border-radius:5px;"></div> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"> <span class="teaser-image-small"><?php the_post_thumbnail( 'latestgamingupdates', array('title' => ''.get_the_title().'' )); ?></span> </a> <div class="spotlightIT2"> <div class="info2" > <div class="ptitle"> <a href="<?php the_permalink(); ?>" rel="bookmark"> <?php the_title(); ?> </a> </div> <p> <?php the_content_limit(120, "[...]"); ?> </p> </div> <p> </p> </div> </div> <?php endwhile; ?> <div id="paginationtech"> <?php if ( function_exists('fb_paging_bar') ) fb_paging_bar(); ?> </div> </div> </div> </div> <?php else : ?> <p id="p404"> <?php _e('Momentan nu exist con?inut. Scuze!'); ?> </p> </h2> <?php endif; ?> <div class="clr"> </div> </div> <div class="clr"> </div> <!-- End Main Body --> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingAs you can see: https://www.digitalgames.ro/quantum-break/ pages are published.
I use plugin “Executable PHP widget” to display the code above.
https://s8.postimg.org/4rsx7ssdf/widget_web.png
https://s8.postimg.org/tmcf1vd7n/data_lansare_custom_field.png
Forum: Fixing WordPress
In reply to: Display pages with cumstom field date upcomingI try and still not works.
I replace a custom field with the date 2013-01-13 of one page and it’s not showing.
I place the code in a PHP widget
Here’s the widget on right down “upcoming”, on this page https://www.digitalgames.ro/
and here’s the page with custom field “YYYY-MM-DD” https://www.digitalgames.ro/quantum-break/
Forum: Plugins
In reply to: [WP-Appbox] Change the language of the plugin?how do i set another language as default? for example i use romanian language, and i want to display it in english, not german.
Forum: Plugins
In reply to: [WP-Appbox] Let's make it Multilingual!I want to help with Romanian language
Forum: Plugins
In reply to: [Dave's WordPress Live Search] Only pagesNevermind, I solved
in DavesWordPressLiveSearchResults.php
// Override post_type if none provided if ( !isset( $_GET['post_type'] ) ) { if ( self::SEARCH_WPCOMMERCE === $searchSource ) { $query->set( 'post_type', 'wpsc-product' ); }
replace with
// Override post_type if none provided if ( !isset( $_GET['post_type'] ) ) { $query->set( 'post_type', 'page' );
Forum: Plugins
In reply to: [Background Manager] Title and link for images in templateOk, I’ll wait. thank you for answering.
Forum: Fixing WordPress
In reply to: WP 3.6 won't allow me to upload images/mediaI found the problem. @esmi you’re right, my problem was the plugin FV WordPress Flowplayer. thank you.
Forum: Fixing WordPress
In reply to: WP 3.6 won't allow me to upload images/mediaI hope you backup all your wordpress file before you go to wordpress 3.6. folow this easy tutorial https://etuts.org/manually-downgrade-wordpress/
Forum: Fixing WordPress
In reply to: WP 3.6 won't allow me to upload images/mediaSame here, now i have to downgrade once again. I have this problem and with previous version of wordpress.
where is this option hidden?