Top "Wordpress" questions

This tag is for programming-specific questions about the WordPress content management system.

Can I get a "base URL" in WordPress within a template file?

Usually in my PHP apps I have a base URL setup so I can do things like this <a …

php wordpress base-url
PHP fopen() Error: failed to open stream: Permission denied

I learning how to write a WordPress plugin. I need some help writing some data to an XML file. I'm …

php wordpress fopen permission-denied
How to get the current plugin directory in WordPress?

I need to get the current plugin directory like [wordpress_install_dir]/wp-content/plugins/plugin_name (if getcwd() called from …

php wordpress plugins
PHP - Merging two arrays into one array (also Remove Duplicates)

Hi I'm Trying to merge two arrays and also want to remove duplicate values from final Array. Here is my …

php arrays wordpress multidimensional-array
How to filter WooCommerce products by custom attribute

I'm trying to filter WooCommerce product archive by custom attributes. For example, there are 5 products with attribute "color" containing "red", …

wordpress woocommerce woothemes
Wordpress keeps redirecting to install-php after migration

Here's my situation. I have followed the exact instructions on wordpress codex page about moving a site to another server. …

wordpress migration installation relocation
WordPress asking for my FTP credentials to install plugins

I installed a WordPress blog in my local system. But when I try to add plugins from admin it asks …

wordpress ftp
WordPress: get author info from post id

Or even the author id from the post id. I am trying to return the author meta (author page link …

php wordpress
How to add custom javascript to WordPress Admin?

I want to add some custom jquery code to the Edit Post page, something really simple like showing a div …

php javascript jquery wordpress