Questions tagged as 'wordpress'

1
answer

How to read and understand encapsulated code [closed]

I'm using a php x JS framework and I need to change some things that are and JS however seems encapsulated ... (see below an example) does anyone know how I can do this magic ?? window.Gantt={_seed:0},Gantt.plugin=function(t){this._ganttPlugin...
asked by 20.10.2016 / 21:11
1
answer

How to use friendly urls in a php system? [duplicate]

I'm working on a website, the first site I do without Wordpress and would like your help to implement friendly urls. I do not have much knowledge on friendly urls and .htaccess but I'm trying to learn. My initial .htacces...
asked by 10.11.2015 / 16:30
1
answer

How do I connect to the database via [WordPress] to consult?

Well, I have a call jQuery Ajax on header.php of my theme that is entering a PHP file in the root of my Wordpress and returning me echo test. I need this file to query the banco de dados and return me so...
asked by 29.07.2015 / 22:48
1
answer

Receive javascript data to query in mysql

I was trying to return the post_id variable to php in order to do SELECT in mysql, but I'm not able to work with post_id. How to make the query? <script type="text/html" id="javo-map-tab-infobx-content"> <div class="bt...
asked by 04.09.2015 / 01:15
1
answer

Is it possible to create a dynamic field within an Advanced Custom Field?

I need to create a dynamic field by pulling information from the database that will be relating teachers and their characteristics and putting this field as Advanced Custom Fields] within a CPT UI named teachers. The only thing I ne...
asked by 27.08.2015 / 17:09
1
answer

Resize Image Wordpress Script

I found this script for wordpress, to get the image of the post and add it to the wordpress theme. See the script: function catch_that_image() { global $post, $posts; $first_img = ''; $new_img_tag = ""; ob_start(); ob_end_clean(); $output...
asked by 23.06.2015 / 16:48
1
answer

How to show a listing of all posts on any page

I want to make a list to get the most commented posts, but my problem is that I can not call the right listing always, here's the code: <ul> <?php global $query_string; query_posts($query_strin...
asked by 02.04.2015 / 01:50
1
answer

Get last child from a product category

Hello, good afternoon. I need to get the last child of a category within a product loop: Categoria -categoria filho --categoria ultimo filho This gives me always the Father, that is, 'Category': <?php $product_cats = wp_...
asked by 05.03.2015 / 20:34
1
answer

How do I show more posts when I click the button?

In the loop I put it to show 12 Woocommerce products. <div id="vitrine" class="container-fluid"> <?php $args = array( 'post_type' => 'product', 'posts_per_page' => 12...
asked by 06.02.2015 / 19:31
2
answers

problem while showing category wordpress

I'm developing a theme for Wordpress my menu is generated as follows in header.php <li><a href="<?php echo get_option('home');?>">Início</a></li> <?php wp_list_categories('title_li=&order...
asked by 29.05.2015 / 18:27