Questions tagged as 'wordpress'

1
answer

Load products in Woocommerce

Can anyone tell me a way to be loading woocommerce products, from an existing database. Eg Woocommerce would only read the bank.     
asked by 05.03.2015 / 17:57
1
answer

How to restrict access to a particular page in the admin panel. of wordpress?

Inside the wordpress administrative panel, I need to create about 10 pages, where each user only has access to the page that corresponds to him. Example: User X would only have access to the admin panel of page X and user Y would only h...
asked by 23.10.2015 / 21:01
1
answer

Show variable in script src

I need to pass two parameters via url and create a JS function to get these parameters and place them in the source of a script. Follow what I already have. Link to the parameters: <a href="<?php bloginfo( 'url' ); ?>/co...
asked by 21.01.2015 / 14:28
2
answers

Diversify posts in WordPress by categories

I'm using this code to display the news on the home page of a site, but I wanted to display: 4 news from Cat1 + 3 from Cat2 + 3 from Cat3 <!-- NOTÍCIAS AMB --> <?php if (have_posts('order=D...
asked by 27.10.2014 / 18:43
1
answer

What is the best way to make an AJAX request in WordPress?

When I make an AJAX request in WordPress I do it in two ways, but I'd like to know which one is best. The two that I know of are: 1º) You put your function in functions, eg: add_action('wp_ajax_nopriv_my-function','my_function'); add_act...
asked by 01.11.2014 / 21:35
1
answer

Search returns only the home page of the site

I've created the files search.php and searchform.php for a WordPress theme I'm developing. But testing the search does not return anything, showing only the home page. I had written a query other than the default in another them...
asked by 21.08.2014 / 15:23
1
answer

WordPress: Thumbnail and permalink wrong being displayed

I'm having trouble making the thumbnail and permalink of the most recent post appear on my blog's home page. I made the following code: <?php $posts_noticias = get_noticias_posts(); $destacado = array_shift($posts_noticias); ?>...
asked by 19.08.2014 / 16:15
2
answers

WooCommerce register

Hello, I'm doing a project for an online store using Wordpress + WooCommerce. The problem is the following on the Checkout page, by default woocommerce adds several fill fields, such as: Address information, billing address record, delivery a...
asked by 11.01.2015 / 21:49
2
answers

Error in using glob function with wordpress

I am trying to recover images from a folder with the native function of php glob , but it is returning an empty array . I'm passing the complete path of the folder to the function. Follow the code below: $pasta = get_template_directo...
asked by 18.03.2014 / 05:06
1
answer

Problem with images in the Advanced Custom Fields plugin

I am using Advanced Custom Fields in a job and created the following field and I inserted the code outside the loop: <?php the_field('jogador_1'); ?> and is returning the following error: 15, , foto10, , , image/jpeg, http...
asked by 28.04.2014 / 18:35