• Resolved lottieveronica

    (@lottieveronica)


    I created several custom post types and used those to link the Elementor Pro loop grid (using EP theme builder – archive page and loop grid) on my archive page. I added taxonomies to each of the new CPTs, and used a plugin to change the post type to the new CPTs.

    The one CPT works (how to articles) but the others do not (home reno and products and tools). When I use the URL set up in the CPT, it does not show the posts that are visible in the CPT list. I have set the archive and hierarchal settings to true, visible in nav menus.

    Yesterday, when working with the two plugins (EP and CPT UI), the links to the CPT archive pages worked, although it was a bit odd- it would show the articles with the taxonomies and then the rest of the articles. Today it doesn’t show any of the taxonomy articles when I click on the link/type in the url. It is like the url isn’t recognized.

    I have contacted Elementor Pro to ask for their help but this seems like the problem falls under the CPT UI plugin. I’ve seen a few posts when trying to find a solution that suggest I change some code with my theme. I am not super comfortable doing that – is this the only solution, or is there possibly a plugin conflict?

    I did try the Ele custom skin plugin, but I have disabled it to see if it was a problem. Disabling made no difference.

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter lottieveronica

    (@lottieveronica)

    The url from the custom post type does work though. I just tried that and there isn’t an issue with the links https://furnitureflipping101.ca/articles-home-reno/building-a-basement-storage-closet.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I am a little confused why they feel it’s an issue with CPTUI, truth be told, since we’re only handling a small part of the overall process, which is getting the post types and taxonomies registered. It’s Elementor Pro that is handling the widgets and setup for querying and displaying the content.

    What permalink URLs are we presently dealing with, and

    1. what is the expected URL value vs what you’re getting
    2. What is the expected content at the url vs what you’re getting?

    Trying to make sure I’m on the right page with any sort of attempted troubleshooting I can provide.

    Thread Starter lottieveronica

    (@lottieveronica)

    EP hasn’t replied yet – I am trying to troubleshoot to see if it could be this plugin since it is the one generating the post types and I was having trouble with the URLs.

    But, I just figured out why the taxonomies and menu links weren’t working – I had the archive set to all archives. By switching it to post archives it solved the problem. So, yes, now that I found that solution, the only issue is using the EP theme builder templates and pulling in the post types.

    I’ve watched the Elementor videos on how to use the CPTUI plugin with theirs and I can’t see where I’ve missed any steps/settings that would cause a problem. It is very possible it is a conflict between another plugin and EP.

    I will troubleshoot some more and see if I can find a culprit.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Interesting and noted on all parts thus far. I wonder if you’d be having the same issue without Elementor Pro, letting the normal theme template hierarchy take over.

    Thread Starter lottieveronica

    (@lottieveronica)

    Well, I would just use the WP categories and tags… Haha. I couldn’t do loops though. This workaround is because it seems EP has removed the option to filter by them. I’m not 100 % sure, but I could not find how to do it.

    CPTUI is overkill likely, but since I’ve committed to EP, I’m looking for solutions like this. Now to hear back from EP and see if we can sort it out..

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Let me know what they say, I’m curious.

    I will. I am running to other noticeable issues. When go to create a new brand page, I see 3 of the 4 taxnomonies that I can select from, but they appear to behave like tags where you type in a word to add them. I thought they were supposed to be checkboxes which is what it was before I started all this. Maybe I’m oblivious to how all this works in regards to setting it up.

    Right now, I have one post type called Brands/Vendors. Then I have 4 taxonomies called Categories, States, Store Type and Occassions.

    So what am I missing here?

    • This reply was modified 1 year, 7 months ago by tkgnewseed.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    By default, new taxonomies behave like tags, thus the input you type into. If you want the checkbox version like you see with categories, make sure to set the taxonomy to have “hierarchical: true”.

    Well shot myself on the foot. I have no clue why I did not comprehend what that was. I thought it was for create new entires of the related taxonomies.

    You have been very helpful. Awesome indeed. I will be sure to let you knowif I hear back from Elementor with an answer.

    Again, thank you.

    Thread Starter lottieveronica

    (@lottieveronica)

    An update on my efforts to get this all sorted out. I have found most of the issues were on my end (not surprised!) and getting everything linked correctly.

    There are a lot of different areas to look to make sure everything syncs with EP. What I did find, is using the custom post types AND custom fields, works okay with EP loops and the theme builder for custom post pages for each CPT, however, you have to make sure all of your i’s are dotted and t’s are crossed.

    The Loops link to the topics (CPT) and the articles link to the categories (CF) only. So, I added the CPT topics to my loops and in the article itself, show the CF category. I am obviously not using these to their full potential, but the are good workaround for what I need.

    Things I had to watch for:

    Make sure to turn on the CF for each custom post type to have the categories show on those pages as a checkbox. These are added as individual location rules.

    Make sure you have your settings to show the CFT on all custom post type pages (check box under CFT custom supports)

    Set EP theme archives and pages to the individual CPT (not all archives/posts).

    Make sure the query is set to the post type when creating an EP loop

    Post title has to be turned on and the excerpt filled in, even if it is supposed to pull an excerpt automatically.

    I can’t remember all of the different steps I had to figure out to make everything show up as wanted in the loops and on the article page. I think that was most of them.

    Having just run into this myself, I had a look through the Elementor Pro code to see how they were selecting post types.

    Their get_public_post_types method fetchs all post types where show_in_nav_menus is set to true.

    It seems like an odd option (If a post isn’t public then you wouldn’t show it in the nav menus), but it allows you to select non-public post types that don’t usually show on the frontend such as testimonials.

    Change “Exclude From Search” to false, “Publicly Queryable” to true, “has_archive” flag in your custom CPT to true, it will show the list.

    Although, the problem of rendering still persists.

    • This reply was modified 1 year, 4 months ago by Madgeek.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Good information @1madgeek, thanks.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Custom Post Type not showing’ is closed to new replies.