Questions tagged as 'wordpress'

1
answer

Query is returning an empty array (MySQL / Wordpress)

How do I get the values from the meta_value = candidate field of this table. I'musingthisquery,butit'sreturninganemptyarray.$resultados2=$wpdb->get_results("SELECT * FROM $wpdb->usermeta WHERE $wpdb->usermeta.meta_key...
asked by 10.02.2017 / 13:39
1
answer

PHP - Get string values in string

I'm new to Wordpress and PHP and I'm having a hard time rsrs I have a very large string that I get dynamically. This string is actually an array with multiple values and variables. I would like to take all the values contained in the videoID...
asked by 08.12.2016 / 14:21
1
answer

How to handle database working with docker?

I started working with docker recently and here's a question and in preparation for a wordpress lamp environment, I came up with my bank and my files. The idea was to leave everything inside a repository within git-hub th...
asked by 10.09.2016 / 06:38
1
answer

time to execute script

I have a script that I would like to run after a certain time and not when entering the site, it is currently inserted in the text field WordPress Widget I just need to know the way I can do this. The script is just a code to like Facebook pa...
asked by 09.01.2017 / 22:23
1
answer

I can not import themes in wordpress

I'm trying to install a theme in Wordpress, but this error appears:    (Warning: POST Content-Length of 46588481 bytes exceeds the limit of   8388608 bytes in Unknown on line 0) Thank you     
asked by 01.11.2016 / 11:52
2
answers

Remove post-type Wordpress Articles

Remove I would like to remove the post-type Articles from the Wordpress menu I researched some possibilities but nothing worked. I've tried creating the unregister_post_type method this way: function unregister_post_type( $pos...
asked by 09.02.2015 / 21:38
2
answers

Domains with different endings, pointing to the same hosting in wordpress

I have the following problem with the following domains eg: www.meusite.com.br and www.meusite.com, with Wordpress configured to use the '.com' domain as the main domain. Both domains point to the same DNS, and the site is opening in both domain...
asked by 14.08.2014 / 20:23
1
answer

Form PHP Validation in Contact Form 7

I'm building a form in WordPress and need to validate bank details, CPF, Bank Number, Agency among others, and I use the Contact Form 7 plugin. My question is how do I validate the fields entered by the user in this plugin. The documentation a...
asked by 01.09.2014 / 01:27
2
answers

How to do Wordpress Query

I need to get the ID of the last post from a post_type, but I have no idea how to do this in wordpress. I've tried mysql_query() but I could not. $consulta = mysql_fetch_array(mysql_query("SELECT * FROM wp_posts WHERE post_type='photo'...
asked by 20.08.2014 / 05:53
2
answers

Can anyone explain this logic to me in WordPress?

Well I saw this logic in WordPress theme developed by a colleague, and there was the following logic: <?php $i = 0; $post_type = new WP_Query( 'post_type=cpt' ); if ( $post_type->have_posts() ) : while ( $post_type-&g...
asked by 01.09.2015 / 12:54