Posts by Claudio Sanches • 898 points
25 posts
-
0
votes1
answer35
viewsA: Change Footer logo only
Just edit the logo on <img alt="" src="<?php echo esc_url( $logo ); ?>">, can exchange <?php echo esc_url( $logo ); ?> by the image path you want, or if it’s just the image size,…
wordpressanswered Claudio Sanches 898 -
1
votes1
answer64
viewsA: Pagination in Wordpress category returning 404
Paging will not work properly as you are using the function query_posts() which should only be used internally in Wordpress, their documentation makes it clear that it should not be used within…
-
2
votes1
answer56
viewsA: Wordpress , why the plugins I install is without css and javascript?
Why are you talking wp_head() in the header.php and the wp_footer() in the footer.php of its theme. These functions are essential for the correct functioning of the theme. In Wordpress Codex has a…
-
4
votes1
answer146
viewsA: Help with wordpress loop to generate json api
For the name of the highlighted image to do various things, even catch the title or the alt hers. For title: get_the_title( get_post_thumbnail_id() ) For the attribute alt: get_post_meta(…
-
3
votes2
answers178
viewsA: How to create a new Postbox in Wordpress
There is no "Boxpost" and probably why you have not found yet how to do, because the correct name of this is "Metabox". It has complete documentation about this and in Portuguese in…
-
1
votes3
answers2507
viewsA: Translate specific part of the Woocommerce template
Upgrade your Woocommerce from version 2.3.5 to 2.3.7 which is the latest version. It will probably show the warning to update the translation too, if it does not appear, go to Woocommerce >…
-
3
votes1
answer1929
viewsA: How to show a listing of all posts on any page
There are some problems here, in the title you say you want to list all, but in the description you’re saying you want to list the most comments... Anyway, it’s not gonna work anyway because you’re…
-
1
votes1
answer200
viewsA: How to identify category by Slug when inserting a record with wp_insert_post() from wordpress?
You can use get_term_by() to recover the category ID. $term = get_term_by( 'slug', 'filme', 'categoria' ); $post_id = wp_insert_post( array( 'post_author' => 1, 'post_title' => 'titulo',…
-
2
votes1
answer80
viewsA: URL with two taxonomies
There is something for mixed archive with two different taxonomies as you want and natively in Wordpress. If you want something like this needs to be customized, creating a file using WP_Query.…
-
3
votes2
answers798
viewsA: How to Query Wordpress
If you really want to make a query in Wordpress need to use the $wpdb which already offers a complete interface for everything you need. Your consultation could be done as follows: global $wpdb; $id…
-
2
votes1
answer107
viewsA: Wordpress: Wrong thumbnail and permalink being displayed
A little complicated to say, because it does not have many details and not exactly what this function get_noticias_posts() does and how it returns values. But looking at the values of the other…
wordpressanswered Claudio Sanches 898 -
2
votes3
answers405
viewsA: Pick up last Wordpress post on Cakephp
I do not advise you to try to load all Wordpress within the project in Cake, will draw a lot of functions that you do not need, is a lot to just be able to access a post. Anyway, it is possible to…
-
3
votes1
answer203
viewsA: Custom Field no Woocommerce returns result
Has two problems with woo_add_custom_general_fields_save(). The first with ‘_embalageminput’, there is no ‘, must be ' or ". The second is that there is no variable $post_id, then you don’t know…
-
4
votes1
answer1650
viewsA: Page pagination Category.php in Wordpress
There is no function get_all_posts() in Wordpress, try to search for it: http://developer.wordpress.org/reference/ Probably some custom function, where the global variable is not configured…
wordpressanswered Claudio Sanches 898 -
1
votes1
answer1555
viewsA: Reduce Thumbs size of some products in Woocommerce/insert products without shortcode
First of all you need to set the size of the different thumbnail you want, in case you should use add_image_size() to do this. Then you must override the function…
-
5
votes2
answers564
viewsA: How to remove the "Wordpress" word from the <title> panel?
Here’s the correct way to do this using the filter admin_title: function custom_admin_title( $admin_title ) { return str_replace( ' — WordPress', '', $admin_title ); } add_filter(…
wordpressanswered Claudio Sanches 898 -
2
votes1
answer310
viewsA: How to restrict access to some Wordpress plugins?
There are some plugins to do this and even manually, however with a plugin is nice to keep track. In the case of one that is quite simple and complete is the Allow.…
-
2
votes1
answer533
viewsA: Filter dates using Wp_query and Post meta in Wordpress
In case it depends on the way you save the date... I recommend using the format: YmdHis This way you can make a very simple query by buying numbers only: 'meta_query' => array( array( 'key' =>…
-
1
votes1
answer2993
viewsA: How to loop a custom post type by following the menu_order?
You need to take a look at Wordpress documentation, because on the reference page for Wp_query the parameters of order_by where you can use menu_order, in addition to the way you are doing this…
-
2
votes1
answer1764
viewsA: Integration Cielo Woocommerce
Simple, version 3.0.0 is not ready yet, it is in development and it will take a few days yet to get ready. If you want to use the plugin, download the production version that is available on…
-
1
votes2
answers111
viewsA: Page with Horizontal Navigation
It becomes simpler to build using the Odin, because he’s all set up to work with Bootstrap. See the demo: http://wpod.in/demo/ It is an Open Source project and totally national, worth checking out.…
-
4
votes1
answer1085
viewsA: Making specific table query of Wordpress?
The $wpdb->query() will only return the number of affected columns or false if nothing happens then in case you should use $wpdb->get_results(). I also recommend you use {$wpdb->prefix} to…
-
2
votes2
answers239
viewsA: Returning Value Inside Wordpress Post Type
It all depends on the way you will save and work with the options. Category is a custom taxonomy and in case you can use get_the_term_list(). Dates looks like a custom field and can be recovered…
-
1
votes1
answer44
viewsA: Missed directories on the server
This happens because Wordpress saves the site address in the database. It is possible to arrange this directly in the bank by changing the fields siteurl and home to the new address in the table…
-
4
votes1
answer4782
viewsA: How to calculate freight by zip code in Woocommerce?
Depends on the company you want to use to deliver. Today has ready my plugin for the Post Office: http://wordpress.org/plugins/woocommerce-correios/ There is also the…
wordpressanswered Claudio Sanches 898