Forum Replies Created

Viewing 15 replies - 1 through 15 (of 26 total)
  • Thread Starter thesongoku

    (@thesongoku)

    Hi,

    I honestly did not expect to get a reply anymore, after 4 month.

    Besides from that, I am no longer working for the company I posted this post for anymore. I do not mind to help you to investigate the issue though.

    Regards

    Thomas

    Thread Starter thesongoku

    (@thesongoku)

    Hi Michael,

    I just tried to create our speaker post type via the CPTUI Plugin. While trying to add it, the field for the slug said “the slug already exists”. That’s why I typed in “speakers” instead of “speaker” (because that slug already exists).

    The plugin created a new post type though (which I can understand).

    Do you have an idea, what I could try?

    Regards
    Thomas

    Thread Starter thesongoku

    (@thesongoku)

    Hi Sybre,

    I solved the issue with a custom javascript.

    Regards
    Thomas

    Thread Starter thesongoku

    (@thesongoku)

    Hi Sybre,

    do you have an update for me?

    Regards
    Thomas

    Thread Starter thesongoku

    (@thesongoku)

    Hi Sybre,

    thank you for your reply!

    ACF is enabled on our website.

    Yeah, I did exactly that. I took the code we had before and completely replaced it with the code you provided me.

    The old codebase is still active for other custom post types though, but with an if statement in front (just like in my very first thread) which asks regarding the post type. This code does not apply to anything regarding our cpt product_reviews (example from the very first post) anymore though.

    Thread Starter thesongoku

    (@thesongoku)

    Hi Sybre,

    sorry, I totally missed to reply to you as well. ??

    Just filled out the form!

    Looking forward to your reply!

    Regards
    Thomas

    Thread Starter thesongoku

    (@thesongoku)

    Hi Sybre,

    thank you for your extensive response!

    As we have a pretty big and complex system, we completely clear our cache almost daily (sometimes even several times).

    Unfortunately the refreshed code does not transport the generated description to the meta-description neither, which kinda confuses me, because the “old” meta-title code snippets still work. Its just about the meta-description codes which do not work.

    I am looking forward to your reply!

    Regards
    Thomas

    Thread Starter thesongoku

    (@thesongoku)

    Hi Sybre,

    thank you for sharing the code with me.

    I just tried your code out. The return statement prints the excerpt to the screen but not to the meta description though. Do you have an idea on how I can get the generated string in the meta description? And I am still confused why the code does not work anymore ?? I mean, pretty much nothing changed in the last weeks.

    What I am curious to know as well: Why are the description hooks named differently compared to the title hooks? Some act pretty similar, but one is called “the_seo_framework_title_from_generation” while the description equivalent is called “the_seo_framework_generated_description”.

    Thread Starter thesongoku

    (@thesongoku)

    Hi Sybre,

    sorry for my late reply!

    1. I am always a little nervous when it comes to hitting the permalink button because I am afraid it breakes the entire page. Will pressing the permalink button auto re-generate the xml-sitemap(s) in case I set certain pages/custom post types to index/noindex/404?

    2. We indeed use WP Rocket but I did not find a reason why xml-sitemaps would be cached. So, as you say, all xml-sitemaps get re-generated as soon as someone posts or updates any wordpress post?

    3. I know this has no impact. I were just confused why there is a “-1” at the end of every xml-sitemap’s name. Is there a certain reason for this? Do you do this in case there is another plugin in the way which also generates xml-sitemaps? In that case, you could just add something like “tsf” instead of “-1”, no?

    4. Ok. So, just verify on 1. and I might go for it ??

    Regards
    Thomas

    Thread Starter thesongoku

    (@thesongoku)

    Hi @luciamarinescu,

    thank you for your reply!

    When I set an Elementor Loop query as follows, I get to see data:

    Query
    Reviews (our custom post type I want to get a list of 8 entries from)
    Included by –> Term
    Term –> Review Kategorien: Affiliate Marketing (this is ONE of like 50 categories we got, which are assigned to those entries).

    The thing is, if I set the query like that, EVER page will show the same tools, which is neither right (because I am building alternative pages) nor senseful (internal linking etc.).

    If I get rid of “Included by: Term” I just get a random list of Reviews, which works as expected but is not what I want to achive.

    I miss the option to get Reviews (our cpt) by the categorie the current Review viewed is in. Like, if I am on the alternative page for Zoom, I would like to see alternatives from the Kategorie “Video conferencing”.

    This does not seem to be an MPG problem in the first place but rather an Elementor topic for extending their tool. But I do not thing they gonna extend their tool for ONE customers custom usecase.

    The other option would be to build this loop by myself though (and to make sure it is responsive on all devices).

    Regarding your question with the display: I had this problem on our staging environment. Since I had to mirror our live environment on our staging environment, I miss a few tiny things in elementor including the option to just use “Review Kategorien” (review categories) in the elementor query. Before the merge, I had that option and saw the results on the template but NOT on the generated page.

    Thread Starter thesongoku

    (@thesongoku)

    I pretty much got what I wanted to have meanwhile, THOUGH the elementor loop which I setup still only shows in the backend. As soon as I visit the live page, the loop does not show. If I choose different configurations, the loop shows in the template AND on the live page. But those configurations are not what I would like to show.

    Any ideas?

    Thread Starter thesongoku

    (@thesongoku)

    It seems like I finally got it working:

    https://omkb.de/company/
    https://omkb.de/company/category/testcompanys/
    https://omkb.de/company/sendinblue/

    There is one thing I noticed at the very beginning of working with CPTUI and which you should maybe consider:

    As we already had previous CPT working (with out custom code) which only included “category” as slug/prefix for the categories and I THOUGHT I will not be able to alter/customize the slug I chose at the very top of both the CPT and the taxonomy, I felt a little helpless because the field said “There is already an existing page/page type with this slug”.

    That made me play around with the slug field, saving and altering until I had the same slug for the CPT AND the taxonomie (which I wanted, because I wanted both to be called /events/, otherwise I would have got two different directories like /events/ and /event_category/).

    In the and, when I reflect, THAT working around (and the fact that this was even possible) let to the entire rest of the struggle.

    So, to prevent other users from wasting almost one work week on this (maybe I am the only idiot out here :D), you might reject a slug (at the very top, not the custom one) and making it unable to save, if it is exactly the same as another slug. You might also add the hint, that the user can change the slug in the settings.

    I guess, if this workaround had not been possible, I had reached my destination way earlier, but hey, that is how things go! ??

    Edit: One last note! If there is no taxonomie created yet and you would like to create one by clicking on the “Categories” link of the CPT (not of the plugin but of the CPT), you get an error message. The page is only available if you created a category/tag by typing it out in an entry of the CPT before. Hope you understand what I mean^^

    • This reply was modified 2 years, 3 months ago by thesongoku.
    Thread Starter thesongoku

    (@thesongoku)

    Okay, I do not why and I do not how I became Events working now, but it does. Gonna try the same with Company now.

    https://omkb.de/events/
    https://omkb.de/events/agency-day/
    https://omkb.de/events/category/testkategorie/

    Thread Starter thesongoku

    (@thesongoku)

    I just came a step further.

    I renamed my taxonomie “events” to “events_kategorie” (events_categorie in english) and tripple checked all other settings to be exactly like the working one. Now, I can create tags/categories from within an event.

    The “Custom slug” field is mandatory for this approach though, because I do not want to have an url like https://omkb.de/events/events_categorie/categoryname.

    The only thing still NOT working right now: If I click on the category (which shows in the breadcrumb meanwhile), I get an 404 error. And if I apply my template to “Events Kategorien” in Elementor, that unfortunately does not change anything.

    Do you have a tipp here?

    Thread Starter thesongoku

    (@thesongoku)

    Hi Michael,

    if I wanted “cat” instead of “category” in the slug, why would someone write something else in?^^ As far as I can see, filling the additional field is useful if you want to add additional things because you can not use / in the first slug field.

    I will try to adapt the other taxonomies as close to the working one as possible.

    To clarify for you:
    We got the custom post types Events, Company, Lexikon etc. in the very first menu “Add/Edit Content Type” (should be the translation, we use the Plugin in german). They are named (and shown in the dropdown) exactly the same.

    Note:
    The corresponding category/taxonomy (Events => Event Kategorien) is NOT checked at the very bottom. I noticed this is not the case for a CPT that is working, so I did not do it here.

    What confuses me:
    These checkboxes exist for both, the definition of the custom post type (very bottom) AND the definition of the category/taxonomy (very top).

    Is there a reason for it and might that be the reason somehow? Why can I/do I have to check “Event Kategorien” (event categories) as taxonomy for “Events” AND later on be able to check “Events” as CPT for “Event Kategorien”? Is it necessary to check these boxes vice versa to make it work or what is the reason for it?

    In the second menu, the one where I can edit taxonomies, we got “Events Kategorien” and “Company Kategorien” in the drop down besides from a few others which are not interesting right now I guess.

    So far, everything looks fine to me.

    I just double checked the “Registered…” page and here, everything seems to look fine too. Dunno, I feel like this was different yesterday.

    Though:
    If I am in an entry on my custom post type events (any event) I can NOT select a category (right now there is only one called “testcategory”). And if I add a new one (newcategory), the field for inserting it becomes blank after hitting enter and NO category got assigned. If I now check the list of all events, another empty event “(no title) – Draft” has been created. Really really weired.

    I really hope something of what I wrote you gives a hint about what I am doing wrong. Should be possible to create a damn CPT within one workweek shouldnt it? ??

    Regards
    Thomas

Viewing 15 replies - 1 through 15 (of 26 total)