Jim Robinson
Forum Replies Created
-
Forum: Plugins
In reply to: [CPT-onomies: Using Custom Post Types as Taxonomies] Order WarningWhen a string is used in orderby this warning does not appear.
That worked π
I upgraded to the development version and the issue is not fixed. There is still a 0 = 1 in the query.
This issue has been fixed, thanks.
I just changed to the development version and am still having an issue. I have this query:
new \WP_Query(array( 'post_type' => 'post', 'post_status' => 'publish', 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'issue', 'field' => 'id', 'terms' => get_the_ID() ), array( 'taxonomy' => 'post_tag', 'field' => 'id', 'terms' => array( 108 ), 'operator' => 'NOT IN' ) ), 'posts_per_page' => -1 ));This is the query being returned:
SELECT wp_posts.* FROM wp_posts INNER JOIN wp_postmeta AS cpt_onomy_pm1 ON (wp_posts.ID = cpt_onomy_pm1.post_id AND cpt_onomy_pm1.meta_key = '_custom_post_type_onomies_relationship') WHERE 1=1 AND 0 = 1 AND wp_posts.post_type = 'post' AND ((wp_posts.post_status = 'publish')) AND ( cpt_onomy_pm1.meta_value IN (65652) AND wp_posts.ID NOT IN ( SELECT object_id FROM wp_term_relationships WHERE term_taxonomy_id IN (108) ) ) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESCThere is a 0 = 1 that is breaking the query. I will attempt to see why this is not being removed later today and let you know what line is failing.
I am getting the same warning message after upgrading to 4.1. Seems something is amiss with changes in WordPress 4.1 and CPT-onomies.
Forum: Plugins
In reply to: [W3 Total Cache] What's the Varnish server details syntax?Pothi, I thought he was asking for config examples. My mistake.
Unfortunately I have never used Varnish within W3TC, just as a proxy in front of Apache so I am afraid I can’t help there.
Forum: Plugins
In reply to: [W3 Total Cache] What's the Varnish server details syntax?Ah, just noticed there is a sample Varnish config file within W3TC’s files:
http://plugins.svn.wordpress.org/w3-total-cache/tags/0.9.3/ini/varnish-sample-config.vcl
Forum: Plugins
In reply to: [W3 Total Cache] What's the Varnish server details syntax?It will be different depending on your server setup. For the most part follow the basics here:
https://www.varnish-cache.org/trac/wiki/VarnishAndWordpress
You will definitely need to change things if you are running multiple servers where one or specific ones are designated for the admin but the Varnish docs will get you a basic setup on a single server.
Forum: Plugins
In reply to: [W3 Total Cache] Exclude stylesheet from being requested from cdnEureka! I figured it out!
Go to the W3TC CDN settings page and under the “Advanced” header there is a “Rejected files” entry with a textarea. Enter the path to your file and it removes the CDN domain.
jesusim, in your case you would enter something like:
{wp_content_dir}/themes/lespaul/assets/css/style.css.phpForum: Plugins
In reply to: [W3 Total Cache] Exclude stylesheet from being requested from cdnI would like to know the answer to this as well. I have a CSS including font files but fonts require a CORS header to work properly across domains in some browser (like Firefox and IE). This is an issue because a number of firewalls block various headers (including CORS) from coming though. I need a way to get the default URL path without the converting to the CDN domain. Any way to do this?
plugins_url() and get_template_directory_uri() both convert to the CDN domain. Is there another function that will do the same without passing back the CDN domain?