Questions tagged as 'wordpress'

0
answers

Wordpress User Administrator

I am editing the WordPress code to add a file upload button but it does not save it in the database, where could it be modified to save it in the database?, modify the edit-user file that comes with WordPress and just add the buttons to upl...
asked by 13.02.2018 / 16:45
0
answers

How can I run this php code 3 times per ip every 24 hours

function setPostViews($postID) { //check if user not administrator, if so execute code block within if( !current_user_can('administrator') ) { $user_ip = $_SERVER['REMOTE_ADDR']; //retrieve the current IP address of t...
asked by 07.03.2018 / 20:34
0
answers

Wordpress does not send email in html format

I have a small problem with the sending of emails in wordpress it turns out that it does not send email with plain text html content In my function I have the following code which should work: function confirmed_visited($post_author, $proje...
asked by 08.02.2018 / 00:03
1
answer

Product check in Wordpress [Woocommerce]

Good morning community StackOverflow, I have some doubts because I want to make a check in PHP on the Wordpress platform, in the table wp_posts . I want to check if the title of a product exists. But how should I proceed to perform a check, for...
asked by 07.02.2018 / 09:36
1
answer

configure wordpress

I'm trying to upload a page made in wordpress to a host but when modifying in settings leave the wordpress installation on the server and the url will leave it on the localhost by mistake As in the image, I need to know in which file that con...
asked by 03.02.2018 / 23:26
0
answers

Wordpress: $ authors_posts does not return the author

I try to do a var_dump to verify if the author brings me the name, but I get null o.o This is the code: <?php $authors_posts = get_posts( array( 'author' => 19, 'numberposts' => 1, 'orderby' => 'date' ) ); var_dum...
asked by 03.02.2018 / 08:30
1
answer

Insert products to woocommerce does not show the price

Good community, I'm having a problem and I do not know how to fix it. I am entering the data via PHP and I have the problem that the price does not show in the capture you have here: Capture_1) Capture_2) On the other hand, you ente...
asked by 06.02.2018 / 15:57
1
answer

I can not see the site on an apache server

I have a problem loading my website in wordpress to an apache server on Windows with some specifications that I do not know. The route to load the sites looks like this: In the Apache24 folder there is a directory called htdocs (wh...
asked by 21.01.2018 / 20:09
0
answers

How to make a logout in wordpress?

The code takes me out of the session but the data keeps showing up case 'logout' : check_admin_referer('log-out'); $user = wp_get_current_user(); wp_logout(); if ( ! empty( $_REQUEST['redirect_to'] ) ) { $redirect_to = $requested_redirec...
asked by 25.01.2018 / 22:55
2
answers

Decode json from php sent by jquery.ajax (POST) Wordpress

I have a json that is stored in the variable projects which is sent by jquery.ajax in this way: var proyectos = [{"Paso1": selectEmpStar},{"Paso2": selectEtapa},{"Paso3": selectServ},{"Paso4": selectCarac},{"Paso5": selectCuent},{"Paso6":...
asked by 16.01.2018 / 17:50