dlature1
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Dates not displaying on Custom Post Typesjust a bit ago I found this, which seems to be working. I hope there are no unforseen problems here in this approach:
// Add custom post types to archives - renamed some_function to CPT_ArchiveInclude Develocom's code from https://css-tricks.com/snippets/wordpress/make-archives-php-include-custom-post-types/ //11-22-15 keeping my fingers crossed! function CPT_ArchiveInclude( $query ) { if(!is_admin()) { // For categories, lets add 'nav_menu_item' to the array so we don't break our navigation.// if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) { $query->set( 'post_type', array( 'post', 'nav_menu_item', 'ecoecclesia', 'occupytheology' )); return $query; } if( is_archive() && !is_post_type_archive() && empty( $query->query_vars['suppress_filters'] ) ) { $query->set( 'post_type', array( 'post', 'ecoecclesia', 'occupytheology', 'aktt_tweet' )); return $query; } if( is_home() && empty( $query->query_vars['suppress_filters'] ) ) { $query->set( 'post_type', array( 'post', 'ecoecclesia', 'occupytheology' )); return $query; } } } add_filter( 'pre_get_posts', 'CPT_ArchiveInclude' );
Forum: Fixing WordPress
In reply to: Dates not displaying on Custom Post TypesI realize that any given plugin are not “RESPONSIBLE” for problems that derive from what is really WordPress core. I posted here and in CPT UI only because I knew a key person in the CPT UI team, and they put me in touch with one of the other key people there. That’s a great plugin, BTW. Been using it almost since it came out. But I am still searching for a way to enable my Date Archive to properly see that most of my posts are of one Custom Post Type or another. I had started using Custom Post Types as soon as they were announced, given what I understood of their usefulness for handling and organizing content. When WordPress 3 came out, it was heavily encouraging us to use CPTs. But it seems that we still had to rely heavily on Plugins to take advantange of it. Now as I am trying to find a new theme, I have discovered how much of my Blog is broken in its functionality because WP doesn’t handle my Custom Post types well. I am wondering why WordPress hasn’t made it as easy as , say, checking a check-box that tells WP to handle some or all CPTs as actual posts (sure, they are “Custom” Post Types, but they are, after all, still “POSTS”. NOw when a day on the WordPress Calendar is clicked, which shows there are posts on that day, when WordPress doesn’t find any of the default post type of “post”, it gives a 404 error. I hunted around almost all day yesterday and found a few pieces of code to add to my “archive.php” file so that it will see Custom Post Types. But still, the links do not work. Something amiss with the Permalinks. Yet more problems. Why, WordPress, are you leaving so many of us who are less than the most capable WP coders, out in the cold on CPTs? I know PHP, and have also done work with WordPress DB and various customizations. But this is getting to be a time suck, but I have to stick with it since I am trying to enhance my latest efforts at EcoEcclesia to more fully leverage the power of WordPress. I hope WordPress developers and coders will (or maybe ARE) working on this. Build it in to the Admin so that I dont have to continue to add code to my themes. Plugins can only go so far when WordPress isn’t providing hooks into the Core to enable the use of the Custom Post Types so that it is compatible across ALL of WordPress’ features.
Forum: Plugins
In reply to: [Custom Post Type UI] CPTs not showing Post Dateok, thanks. Let me know if you hear anything or run across something that might address this in general. Thanks for your willingness to help.
Forum: Plugins
In reply to: [Custom Post Type UI] CPTs not showing Post DateYes, I have made use of the pre_get_posts hook, in my functions.php of the theme for the loop. But apparently there’s another loop somewhere that handles a by date query that needs the CPT’s mentioned or something that grabs all the CPTs.
Forum: Plugins
In reply to: [Custom Post Type UI] CPTs not showing Post DateI have a twitter plugin that creates custom post types called Tweets, and those get pulled into the default WP calendar, but the links from the calendar days dont work. Lots of incompatibilities in the various plugins with CPTs.
Forum: Plugins
In reply to: [Custom Post Type UI] CPTs not showing Post Dateas for the “Posted On…” it seems that other themes can display it. But the links from the calendar remain broken. Seems the query that gets launched by the ?m=xxxxx parameter does not see the custom posts…any idea what page is trying that query?
Forum: Plugins
In reply to: [Custom Post Type UI] CPTs not showing Post DateSeems the Calendar doesn’t handle what’s needed to make the correct links. I installed the calndar widget, and it displayed the links on the dates, but the links didnt work. They linked to the same format as the m= link I showed in my previous comments, but the post could not be found via that date archive. Something is missing in the date archive.
Forum: Plugins
In reply to: [Custom Post Type UI] CPTs not showing Post DateThanks Michael. It is the out of box Calendar widget. So where(what file) would I look to find and adjust the query? Same question for the Date display issue….what template is it using to display the CPT instances that is different from the nonCPT posts that do show the “Posted On…” line?
Thanks again for your attention to this.Forum: Fixing WordPress
In reply to: Dates not displaying on Custom Post Typesdeleted
Forum: Fixing WordPress
In reply to: Dates not displaying on Custom Post Typesmy site is at wp.theoblogical.org and the first problem can be seen in the first 3 posts. The first one is a normal, regular post. The next two are custome post types, and both do not have the line “Posted On -date” by -User” metadata that is under the Post Title on the first post.
The second problem can be seen in the Post Calendar or in the Date archive like here: https://wp.theoblogical.org/?m=201509 and it shows only regular posts there, and the calendar prev next links skip over August, since all of my posts in August were CPTs.
Forum: Plugins
In reply to: [Custom Post Type UI] CPTs not showing Post DateForum: Plugins
In reply to: [Custom Post Type UI] CPTs not showing Post Datemy site is at wp.theoblogical.org and the first problem can be seen in the first 3 posts. The first one is a normal, regular post. The next two are custome post types, and both do not have the line “Posted On -date” by -User” metadata that is under the Post Title on the first post.
The second problem can be seen in the Post Calendar or in the Date archive like here: https://wp.theoblogical.org/?m=201509 and it shows only regular posts there, and the calendar prev next links skip over August, since all of my posts in August were CPTs.
Forum: Plugins
In reply to: [Custom Post Type UI] CPTs not showing Post Datea related problem is that the calendar does not include any custom post types. When I had no “regular/default” posts that had been published in October, when November rolled around, the previous month link on the Calendar was labeled “Sep”. Sure enough, when I published a Draft I had done in October but never published, the prev month link changed to Oct. So how do we get the post date problem solved if we want WordPress to treat certain Custom Post Types just like it does default posts?
Forum: Fixing WordPress
In reply to: Dates not displaying on Custom Post Typesa related problem is that the calendar does not include any custom post types. When I had no “regular/default” posts that had been published in October, when November rolled around, the previous month link on the Calendar was labeled “Sep”. Sure enough, when I published a Draft I had done in October but never published, the prev month link changed to Oct. So how do we get the post date problem solved if we want WordPress to treat certain Custom Post Types just like it does default posts?
Forum: Plugins
In reply to: [Social] Version 3.1.1 Released – Fixes Facebook Pages Supportso when I uncheck the “default” on my Facebook account under the Social plugin settings, it finally posts. Do I have to leave it off from now on and post Twitter and Facebook separately?