Most Popular

1500 questions
13
votes
1 answer

web.config conflict on IIS

folder structure docroot |- wordpress |- web.config |- wp-content |- japi |- index.php \- web.config ... ... As you can see there are 2 web.config s. One in the wordpress folder and one in…
Prakash Raman
  • 609
  • 1
  • 8
  • 18
13
votes
2 answers

How does WordPress search work behind the scenes?

I am using WordPress search to search a range of custom post types and allow the user to drill-down into each individual post type. However I'm finding that WordPress is not returning what I'd deem to be the 'best' matches first. For example, if I…
chrisd
  • 133
  • 1
  • 1
  • 4
13
votes
2 answers

Unable to select an old date in wordpress

I am unable to set the year below 1899 for a post. If i set year below 1899 it is set to the current year automatically. I have purchased the Timeline theme and asked in their support forum. They replied: This sounds like a limitation created by…
Spartans
  • 141
  • 4
13
votes
1 answer

Why does WordPress need my private ssh key to update?

Configuring WordPress to update within the application (i.e. WordPress) is ideal for me because of its convenience. Nonetheless, I'm troubled by the requirements. The requested fields that show up after installing ssh2 for php ask not just my public…
13
votes
7 answers

Should I delete the default themes?

when managing a Wordpress site it gives me great pleasure to see nothing needs updating. Should I delete the default themes or is it best to leave them there? By default themes I mean: Twenty Eleven Twenty Twelve Twenty Thirteen Or should I just…
morktron
  • 253
  • 1
  • 2
  • 11
13
votes
1 answer

Add filter function in media modal box

I'm trying to extend the media modal, but I cant' find any documentation / tutorials about it. I'm not a master of backbone too ;-) I want to add a select box for each taxonomy that is attached to the attachment post type. At the moment only one…
Horttcore
  • 1,123
  • 8
  • 14
13
votes
2 answers

"Add Media" button in custom plugin

I'm writing a custom plugin and i would like to add the "Add Media" button. I just need to upload media, not to retrieve any content/data from the uploaded file. How can I add this button? Thanks
Pepozzo
  • 367
  • 2
  • 6
  • 11
13
votes
2 answers

add_user_meta() vs update_user_meta()

I'm looking at the docs for add_user_meta() vs update_user_meta(). If the current meta_key does not exist for a user, will update_user_meta() automatically add the meta_key for that user or do you have to define the meta_key with add_user_meta()…
Tim Plummer
  • 255
  • 1
  • 3
  • 10
13
votes
2 answers

Changing WooCommerce Display Price Based on User Role & Category

In wordpress with WooCommerce, I'm looking to display a different price based on a user role (wholesaler, dealer, etc) AND based on the category. There's a dynamic pricing plugin that displays these discounts once an item is added to the cart, but…
Tricky Buddha
  • 139
  • 1
  • 1
  • 5
13
votes
6 answers

How to return only certain fields using get_posts()

I'm trying to get only the fields that I need using the get_posts() function in WordPress. I currently have the following code: $posts_args = array( 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', …
Wern Ancheta
  • 425
  • 1
  • 3
  • 14
13
votes
1 answer

What is the use of to_ping and pinged column?

Can anyone explain or show a reference for the use of to_ping and pinged column in the wp_posts table? It seems that my Googling skills have failed me. I wanted to do an experiment using the pinged column to save the term_id of a term that is…
ifdion
  • 1,477
  • 1
  • 11
  • 23
12
votes
5 answers

How to load parent_theme functions.php before child_theme?

I got the problem that i have to load my parent theme's functions.php file before my child theme's functions.php file loads. This is needed for the setup & init procedure. I looked at the hooks inside /wp_core_root/wp-settings.php (named:…
kaiser
  • 50,955
  • 27
  • 151
  • 245
12
votes
4 answers

Programatically add options to "add new" custom field dropdown

How can I add pre-defined options to the "add new" custom field dropdown? Here's two examples of automatically adding and showing new custom fields: WordPress: Adding Default Custom Fields on New Posts Auto create custom field That's close to…
mhulse
  • 385
  • 3
  • 14
12
votes
10 answers

WordPress refuses to send mail, "...your host may have disabled the mail() function"

I recently implemented a comment area on my website and tried to get the email notification to work. It doesn't seem to want to send email notifications when new comments are made. Just to see if PHP can send emails, I tried to reset the password…
qwerty
  • 685
  • 5
  • 13
  • 24
12
votes
4 answers

Check if Current Category has Children

I need to tell whether or not the current custom taxonomy archive page I'm viewing has child categories. I've got a situation where there are a lot of custom categories with children and the site is only to show posts at the end of the line.…
user29489
  • 143
  • 1
  • 1
  • 5
1 2 3
99
100