AdrianPB
Forum Replies Created
-
Forum: Plugins
In reply to: Show upcoming events using wp_query?Nvm, got it working!
Forum: Plugins
In reply to: [Contextual Related Posts] Related Posts not showing?How do I perform the b) task?
Recreating index didn’t work.
Forum: Plugins
In reply to: [Smart Popup by Supsystic] Can't get to the settings of the Plugin.Well, a coworker tried to update it, but he encountered an issue, not sure which. Anyways I found a practical workaround for the need I had, thanks for your help!
Forum: Plugins
In reply to: [Smart Popup by Supsystic] Can't get to the settings of the Plugin.WordPress 3.1.1-RC1. I think.
Forum: Fixing WordPress
In reply to: A loop to show event posts with a future date?Now after showing the last July’s events, it jumps to June, not August.
Forum: Fixing WordPress
In reply to: Moved WordPress from one domain to another.I contacted the people from the hosting, they re-configured the php service and it worked like a charm, now it just seems that some content got lost, I believe some php files, since the database shouldn’t be an issue, by this I mean that some loops are not showing for some reason, which is also being investigated by them at the moment, maybe while transferring everything via FileZilla, some files got lost?
Forum: Fixing WordPress
In reply to: Exclude posts with a certain meta_keyI tried this, but it still doesnt work.
<?php $today = date_i18n( 'F d'); $agenda_query = new WP_Query( array ( 'post_type' => 'agenda_posts', 'posts_per_page' => '4', 'orderby' => 'meta_value', 'meta_key' => 'evento_fecha', 'order' => 'ASC', 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'evento_fecha', 'meta-value' => $value, 'value' => $today, 'compare' => '>=', 'type' => 'CHAR', ), array( 'key' => 'promovido', 'value' => 'NOT EXISTS', ) ) ) ); ?>It says “Sorry, no posts match your criteria”
Any help would be appreciated!Forum: Fixing WordPress
In reply to: How to filter a post in a loop?Briefed theme, and it’s all on code, want the code?
ANd by using ‘post__not_in’ how do I get the parent’s slug for instance, to filter it?I’m pretty new to php, here’s the query that I’m currently using in the featured loop.
$postpromo = new WP_Query( array('post_type' => array( 'post', 'homepage_slider', 'portfolio', 'reportajes_slider' ), 'posts_per_page' => 6, 'meta_key' => 'promovido', 'orderby' => 'date', 'order' => 'DESC' ) ); ?>It’s in spanish, basically “promovido” is a custom field that determines if a post should be featured or not, and this is a loop for all my custom post types (portfolio, post, homepage_slider and reportajes_slider”
Thanks in advance!
Forum: Fixing WordPress
In reply to: Comment form showing twice on custom types.Solved it, the code somehow was placed twice in the loop, maybe the previous webmaster placed it there.
Forum: Fixing WordPress
In reply to: Nivo-slider not working just in a few pages.Bump, sorry but I really need to fix this.
Forum: Plugins
In reply to: [WP Facebook Open Graph protocol] Image not showing properlyI gues this message:
og:image could not be downloaded or is too small og:image was not defined, could not be downloaded or was not big enough. Please define a chosen image using the og:image metatag, and use an image that’s at least 200x200px and is accessible from Facebook. Image ‘http://latempestad.mx/wp-content/uploads/2015/03/carlos_marks.jpg’ will be used instead.But still the image is way bigger than 200 x 200