Questions tagged as 'wordpress'

1
answer

Create menus in the WordPress Dashboard

I need to create custom menus for a WordPress theme and I got to this function that works in parts, as it does not appear in the TITLE part and "TEXT" strong> or "SIDERBARS" , can you tell me where I'm wrong? // Function para novos...
asked by 20.03.2014 / 03:33
1
answer

How to add billing fields on the Woocommerce edit-account page! (Wordpress)

Personal how can I add fields that are already default to woocommerce on my account page? I tried it like this: but do not aim at the expected result. add_action( 'woocommerce_edit_account_form', 'add_fields_to_edit_account_form'); function ad...
asked by 24.10.2018 / 15:03
1
answer

Generate random number and add Class to the body of the Wordpress login page

I have a problem that is simple and straight forward, but I have no idea what I'm doing wrong. The function is simple, I want to add a class inside the Body in the login page of Wordpress, I can do that, but I also want to update the page to...
asked by 05.06.2018 / 15:16
1
answer

Wordpress: multiple queries

I'm doing queries to fetch posts according to different parameters of custom fields, but I'd like the final result of the 3 queries to be displayed together. function query() { foreach ($values1 as $value1) { $arrays[0][] =...
asked by 06.09.2018 / 18:12
1
answer

B.D ERROR with closed application ports

I have an e-commerce and it is hosted in Configr and we have never had problems with it. This week the site began to become overwhelmed, even without traffic or anything, even falling several times. The server's staff says that the applica...
asked by 20.06.2018 / 13:42
2
answers

Registration wordpress capital letter

How do I prevent customers from signing up for wordpress with email with a capital letter? Any function without a plugin?     
asked by 25.07.2018 / 14:48
1
answer

Variable by URL in all page links

I'm using the following code to pass variables through the URL, in wordpress. if (isset($_GET['layout'])) { $layout = $_GET['layout']; } else { $layout = '1'; } With $layout I retrieve the value in the code, where I use to ch...
asked by 19.02.2018 / 18:49
2
answers

Disabling directory listing in WordPress

Good afternoon everyone, I would like my directory listing not to be exposed, I used the following code inside .htaccess Options -Indexes , however when I test the code renaming the index. php it returns error 403 . Is it possible to...
asked by 21.12.2017 / 17:56
1
answer

wordpress add_rewrite_rule with custom field

How do I create a URL in WordPress, using add_rewrite_rule , equal below but filtering the posts by a custom field? function custom_rewrite_basic() { add_rewrite_rule('^leaf/([0-9]+)/?', 'index.php?page_id=$matches[1]', 'top'); } add...
asked by 11.07.2017 / 21:04
1
answer

Conditional on has_post_thumbnail

Well I'm setting up a theme that some posts will be displayed a thumb and some not, but I need to put a conditional on the code that when it has thumb pull the config of thumb and when it does not have a simple post. However the current way it i...
asked by 01.08.2017 / 21:29