Thomas Griffin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Custom Post Type Archives URL is rewriting to main post URLNevermind, I figured out my own question..Apparently the Custom Post Type UI plugin does not have the ‘with_front’ option to select, which is a big fail. I just manually created it with that and everything is smooth sailing. ??
Forum: Plugins
In reply to: [Shadowbox JS] [Plugin: Shadowbox JS] Excluding an image?I have this same request, but for a different reason.
I am using another script for an image gallery that uses a rel attribute. However, I cannot add multiple rel attributes because it messes up the image gallery script. (The image gallery does not use shadowbox). Is there another way to exclude images besides the rel attribute?
Thomas
Forum: Plugins
In reply to: [W3 Total Cache] How to Cache CDN Files with W3 Total CacheGot it figured out..somehow there was a setting in my .htaccess file that was preventing browser caching. I got it cleared out and now it is working well. Thanks again for your help!
Forum: Plugins
In reply to: [W3 Total Cache] How to Cache CDN Files with W3 Total CacheI have been hunting and hunting and still cannot find any solutions for this. Any ideas here? I know it can be done because I have run the same test for Yoast’s site, and the majority of his CDN files are cached after the initial visit.
Forum: Plugins
In reply to: [W3 Total Cache] How to Cache CDN Files with W3 Total CacheAny ideas or suggestions for this?
Forum: Fixing WordPress
In reply to: How to Include Custom Post Types in Search Results and ArchivesThat is correct. ??
Forum: Fixing WordPress
In reply to: How to Include Custom Post Types in Search Results and ArchivesI placed this code in my functions.php file:
function filter_search($query) { if ($query->is_search) { $query->set('post_type', array('post', 'folio')); }; return $query; }; add_filter('pre_get_posts', 'filter_search');
This will return results from my posts and from my custom post type called ‘folio’. You should replace that with your custom post type(s) names. Also, this bit of code removes pages from search results, which is generally a good thing. ??
Forum: Fixing WordPress
In reply to: How to Include Custom Post Types in Search Results and ArchivesPut that into my code, but still didn’t work. ??
Forum: Fixing WordPress
In reply to: How to Include Custom Post Types in Search Results and ArchivesDoes anybody have any solution to this? You can view an example here:
https://thomasgriffinmedia.com/category/portfolio/
None of my custom post types show up, even though I have 2 in that category.
What needs to be done to fix this?
Frederick,
I actually figured out the problem, and it was with W3TC.
For some reason, when I had the option “Cache Home Page” checked, it would also cache my 404 pages as well. When I emptied out the page cache with the option checked and ran it through web sniffer, the 404 header response was 404, as it should be. But when I ran it again, it returned 200.
Once I unchecked the Cache Home Page option, my 404 pages started sending 404 header responses every time.
Any reason why it would do this?
Forum: Fixing WordPress
In reply to: How to Include Custom Post Types in Search Results and ArchivesStill haven’t found a resolution to this. Any suggestions?
Forum: Fixing WordPress
In reply to: How to Include Custom Post Types in Search Results and ArchivesAnyone have any idea what do to?
Forum: Fixing WordPress
In reply to: How to Include Custom Post Types in Search Results and ArchivesOk, I figured out how to include them in the search results. I had forgotten that I had excluded pages from my search results, but I forgot to add in my custom post type for the search results.
However, my custom post types are still not appearing for my taxonomies. I’m just using the ‘category’ taxonomy for my custom post type, but when I go to the category page for my custom post type, nothing appears. Anyone know what to do here?
Forum: Your WordPress
In reply to: Check out my new website!@attackofthebook – Thanks for the compliments!
Forum: Hacks
In reply to: Adding multiple conditions for custom post typesGot it figured out.
Didn’t realize that is_singular could now target custom post types!