10rous
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: sort custom type posts by date, phpREsolved
<?php /* Template Name: ferias */ ?> <?php get_header(); ?> <?php $query = new WP_Query(array( 'post_type' =>'fre_firas', 'post_status'=> 'publish', 'meta_key' => 'fecha', 'orderby' => 'meta_value_num', 'order' => 'ASC', )); $query2 = new WP_Query(array( 'post_type' =>'fre_firas', 'post_status'=> 'publish', 'meta_key' => 'fecha', 'orderby' => 'meta_value_num', 'order' => 'ASC', )); $fecha_actual = (int)(date('Y') . date('m') . date('d')); ?> <?php // The Loop while ( $query->have_posts() ) : $query->the_post(); $fecha = get_post_meta($post->ID, "fecha", true); $fecha_tmp = explode("/",$fecha); $fecha_format = (int)($fecha_tmp[2] . $fecha_tmp[0] . $fecha_tmp[1]); if ($fecha_format >= $fecha_actual) { ?> <p class="main-blog8leftcontent"><span><strong><?php echo date("d/m/Y", strtotime(get_post_meta($post->ID, "fecha", true))) ?> <?php echo get_post_meta($post->ID, "lugar", true) ?></strong></span> <span><?php the_title() ?></span> <span><a href="<?php echo anyade_http(get_post_meta($post->ID, "link", true)) ?>"><?php _e("més informació") ?></a></span></p> <?php }; endwhile; // Reset Post Data wp_reset_postdata(); ?>Forum: Fixing WordPress
In reply to: display repeater custom field imagesolved, checking the image url option in custom field return option
<ul> <?php while(has_sub_field('fotos', 'option')): ?> <li><img class="foto" src="<?php the_sub_field('foto') ?>"/></li> <?php endwhile; ?> </ul>Forum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] display repeater custom field imagesolved, checking the image url option in custom field return option
<ul> <?php while(has_sub_field('fotos', 'option')): ?> <li><img class="foto" src="<?php the_sub_field('foto') ?>"/></li> <?php endwhile; ?> </ul>Forum: Fixing WordPress
In reply to: display repeater custom field imageI’m working on a php cutom template, that line should be ok WPRanger, as it works for text custom fields in other div within the same template
e.g.
<?php while(has_sub_field('servicios_restaurante', 'option')): ?> <li style="float:left; padding-left:10px; width:280px; clear:none; padding-right:10px; text-transform:uppercase; font-size:12px; line-height:20px;" id="serv_lista"><p class="dinpro"><?php the_sub_field('servicio') ?></p></li> <?php endwhile; ?>I’ve tried to remove the ‘option’ but it doesn’t work either
thanks
Forum: Fixing WordPress
In reply to: display repeater custom field imagei can’t get it to work
it should be like this?
<ul> <?php while(has_sub_field('fotos_platos', 'option')): ?> <li> <?php $my_image = wp_get_attachment_image_src(get_sub_field('foto_plato')); ?> <img class="foto" src="<?php echo $my_image[0]; ?>"/> </li> <?php endwhile; ?> </ul>Forum: Fixing WordPress
In reply to: display repeater custom field imagethanks a lot
Forum: Plugins
In reply to: [SlideWizard] Shortcode in widgetsthanks shinjing, it works like charm
Forum: Fixing WordPress
In reply to: how to edit page builder blocksolved by theme authors:
use the Heading block. You can add that above a section and create a title link.You can really change the size of the thumbnail because it all depends on where you put the post block and how wide that section is. If you want to change the demensions of the thumbnails then you would need to edit the engine_thumbnail() function inside of the /reporter/library/engine-functions.php file.
Forum: Plugins
In reply to: [SlideWizard] Shortcode in widgetsstuck with the same issue, anyone got it?
thanks a lotForum: Fixing WordPress
In reply to: default theme on mobile devicesyou’re right once again WPyogi!
there’s an option on the jetpack settings page, turned off and everything worked out right
thanks a lot
solvedForum: Fixing WordPress
In reply to: default theme on mobile devicesthanks WPyogi
it was jetpack, I turned it off and it displays the new them mobile too
but I’d like to used some of the jet pack services so if I’m not wrong I do have turn off the mobile option for the default theme in wordpress.com as ImageOmega said
isn’t it so?Forum: Fixing WordPress
In reply to: default theme on mobile devicesI think you’re right, it must be jetpack
I’ll dig down there and keep you posted, thanksForum: Fixing WordPress
In reply to: default theme on mobile devicesww.wp.xz.cn
it actually has an option to turn on/off responisive but it on
I’ll try and ask the themes developer but it was purchased by someone elseForum: Fixing WordPress
In reply to: default theme on mobile deviceshttp://gesdi.com/responsivator/?site=inthemoodforfood.es
here you can see it works well in term of responsivebut it displays de default blue and white theme within mobiles, i’ve tested it with htc, sony and iphone
Forum: Fixing WordPress
In reply to: default theme on mobile deviceshickory, it was purchased two or three weeks ago at my office