Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Did you set the “has archive” select input to true? I believe it’s false by default.

    Thread Starter mshane8

    (@mshane8)

    Ah yes – that was it. I also had to reset the permalinks after. Thanks!

    I noticed that even though I enabled the featured image area that it is not pulled in the archives. But the theme does pull featured images for general posts in the archives. Also i enabled custom fields and when I enter values into the available custom fields like URL for example – the information isn’t displayed anywhere on the single post page. Is there something additional I need to do after adding custom fields to get that info to be displayed? Thanks so much for the help. Let me know if I need to create a new thread for this. Plugin is awesome!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Featured images and custom fields all need to be set to display in the template files. Nothing we can control from our end. You’ll need to get to customizing the files a bit to fit your need.

    Thread Starter mshane8

    (@mshane8)

    Gotcha OK no problem. The post-types.php file is for individual custom post pages and the listings.php file is for the archive? Just trying to find which two templates I need to modify? Thanks!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Those sound like our plugin’s files, and those aren’t what you need to be editing.

    You need to be editing in your active theme, likely archive.php and single.php

    Thread Starter mshane8

    (@mshane8)

    right – except my theme pulls the featured image in the archive.php file by default. When someone creates a general post the archive.php performs default functions like this that don’t happen when I create a custom post type and then look at the archive for that post type. So you’re plugin templates when creating a post type and archive are taking precedence over the behavior of the theme templates. That is what I am asking. When I look at the archive when creating a general post and a single post within the theme – standard behaviors happen as expected no problem, the featured image is pulled when the archive is presented or when a single post is viewed the area for specific URL shows. No problem. These areas fail to show when using the plugin so the editing is not related to the theme files. The plugin templates are obviously taking precedence over them which is why I am asking because the behavior is different. I just need to know which templates I need to edit in order to get the desired behaviors which are set in the plugins settings options? The archive display values and the single post custom field values. Thats it. Thanks again for your help and attention!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Our plugin doesn’t do any template files though, I assure you. Our plugin’s focus is all getting things registered, and a bit of information display in the admin, for what has been registered with our plugin. The post-types.php file in our includes folder handles the post type creation/edit screen. The listings.php file handles the “Registered Post Types/Taxonomies” menu item page.

    It’s the theme’s job to handle display and we let it do that 🙂

    So the question is where in the WP template stack or implementation of content are things faltering. Have you made sure things like featured image support is available for your custom post types, and are you setting an image for the posts in them?

    Thread Starter mshane8

    (@mshane8)

    hmmmm ok. I am a bit confused. I tested your plugin on multiple sites and it responded the exact same way in each. The only functional areas that work are the post title and the main content editor. Things that are in the default behavior of the theme being used for post archives like – the excerpt and featured image are not called in the custom post type archive. This behavior happens the same way on 4 separate sites. So it sounds like you are saying there are properties like featured image support for custom post types that I need to enable in order for these behaviors to replicate the default post-type and post-type-archive that should be inherited from each parent theme?

    Thanks!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Ok, it sounds like we’re both a little confused.

    I thought we were talking about frontend, user facing displays for featured images, and saved custom field data.

    From the sounds of it, you’re referring more to the post editor screen where you set and save the data, correct?

    When I hear “Custom post type archive”, I’m thinking the list of most recent posts in the post type, as seen by a visitor to the site, which is why I was confused.

    For featured image stuff, the theme does need to have it enabled via https://codex.wordpress.org/Function_Reference/add_theme_support as well. If your parent and/or child theme have it added already then that part is covered. All that would be left is making sure “post thumbnail” is checked for the supports section in CPTUI.

    For custom fields, it’s pretty much just the “supports” section checkbox that needs done. If it’s not showing on your screen, I’d check the screen options tab at the top to see if it should be visually shown in the editor.

    Sorry for the confusion, hoping this clears it up.

    Thread Starter mshane8

    (@mshane8)

    OK – i published a video with the hopes it will clarify. I am talking about the front end. The functions show up on the backend but do not display on the front end when using the custom post type I created or the custom post type archive page.

    For example – in the parent theme when I use the excerpt box and include a featured image they both show in the archive – no problem. If I do the same using the custom post type I create then I don’t see them show in the custom post type archive.

    Hopefully the video shows exactly what I am referring to and is clear.

    Thanks!

    Matt

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Since it is the frontend that we are indeed talking about, we’re back to my point of needing to check your theme’s template files.

    This is because CPTUI doesn’t provide any custom template files of its own. What we do is register the post types and taxonomies based on the provided values, and let the theme’s available template stack handle the display. Infinite amount of variables that we’d need to attempt to take care of ti do this on our own and ensure compatibility with every possible theme out there.

    The questions are which template files are being used with the display you want, vs which are being used with the display of what you see. Other possibilities are going to be conditional logic in the files that may or may not be allowing the fields to display.

    Thread Starter mshane8

    (@mshane8)

    OK but are you saying that I need to edit template files that already have the functions included that I need? The theme archive.php and single.php files show the excerpt and featured image when called.

    It is only when I use the plugin and look at the custom post type archive where the behavior I am asking isn’t displayed. I don’t know how to add functionality that already exists in the template files.

    This happens when on install the plugin on multiple dev sites. The functions like excerpt and featured image when enabled in the custom post I create with your plugin do not show in the custom post archive for that specific post type. The general archive for posts still works completely fine as designed.

    So how should I edit theme templates that already behave the way I need them to outside of using your plugin?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    What I’m saying is you need to read your template files to figure out why it’s not showing these things for custom post types. It’s not the plugin that isn’t showing the associated content, it’s the theme. I assure you we are not doing anything meant to limit this type of thing, because that’s not the stated purpose of our code. We’re trying to help enhance your site, not limit it.

    Your theme may be configured and coded in a way that’s meant to handle the standard “post” post type, and nothing else. I don’t know. It’s possible it’s not loading the same template files and instead are loading less developed ones that aren’t showing those fields like they are for others. Some other condition may not be getting met like a certain setting.

    All of this will be available in your files. The ultimate question is *why*, and it’s not something I can answer or solve with CPTUI.

    Thread Starter mshane8

    (@mshane8)

    if the behavior is replicated across various themes with the plugin than I think its safe to say to say the common denominator is the plugin NO?

    In any case, I am going to have to dump the plugin and probably simply build it from scratch. I thought your plugin might be a quicker and more efficient way to produce custom post types for my projects but i can’t get it to work in multiple environments.

    I do appreciate your time and advice. Thanks so much.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hate to see you go. I’m sorry, but I know what our plugin does and doesn’t do, and this is a theme-level issue. As long as you’re able to set featured images and custom fields when editing the posts in the post type, the plugin is doing what it’s supposed to. We do not impose ourselves on the theme template files at all.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Archive’ is closed to new replies.