What is the advantage of using header-catname.php over is_category(‘catname’);?

Let’s say I have a category named as catname (the slug would be catname). I want the header styled differently when visitors open the category catname. The article on Ghacks explains how to create a custom header (styled differently) when visitors open the category catname, achieved by creating header-catname.php and including it in category-catname.php with … Read more

Custom Post Type Events Archive Grouped By Month

I’m currently trying to get my events listing code to print out headers by Month. So basically this: October event event September event event etc… Right now it just keeps echoing January. I think it might have something to do with the $currentMonth or the strtotime() but I’m not sure what. Any suggestions? I’ve been … Read more

Is it wrong to put header tags inside WordPress help tabs? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago. Improve this question We’re working on improving accessibility in our plugin. One of the rules for accessibility is apparently … Read more

What is the WordPress Pinecone sitting on top of? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 10 years ago. Improve this question Does anybody know where wordpress gets their banner images? Perhaps we could find the original photo? I’m curious just what exactly … Read more

Conditionally loading Facebook PHP SDK in shortcode

Since 3.3 we can enqueue scripts conditionally right in our shortcode functions, but when I tried to do this with some PHP class (uses session_start() in the __construct() function) as you can guess it gives me the headers already sent error. The problem is (this is using the Facebook PHP SDK in conjunction with the … Read more

Mysterious HTTP 404 header in my own scripts

I have a WordPress 3.5.1 + nginx configuration. Its nginx configuration is this: server { root /mysite/public_html; server_name wp.mysite; location / { try_files $uri $uri/ /index.php; index index.php index.html index.htm; } location ~ \.php(.*)$ { try_files $uri =404; include /etc/nginx/fastcgi_params; if ($uri !~ “^/uploads/”) { fastcgi_pass unix:/var/run/php-fastcgi/php-fastcgi.socket; } fastcgi_pass unix:/var/run/php-fastcgi/php-fastcgi.socket; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /mysite/public_html$fastcgi_script_name; … Read more