banana828
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Template option is not shown with a custom post type@mashiurz thanks for replying. I did forget to mention I added that to the template. This is my template page (named mycustomtype-single.php):
<?php
/*
Template Name: My Custom Type Template Single
Template Post Type: mycustomtype
*/
echo "Hello world!";
?>But the dropdown is still not showing:
(redacted for personal stuff)
There are other templates, because when I edit a page (not the custom post type) I see that dropdown.
Thanks for your your reply. I found a way around it; just don’t use the WordPress functionality and create a HTML button.
$button_text = 'Register'; $button_class = 'button-primary'; $button_name = 'submit_button_name'; // Generate button HTML $button_html = sprintf( '<button name="%s" id="%s" class="%s">%s</button>', esc_attr($button_name), esc_attr($button_name), esc_attr($button_class), esc_html($button_text) ); $button_with_link = sprintf( '<a href="%s">%s</a>', esc_url(get_option('klc_events_page_registration') . '?eid=' . $row->id), $button_html );
This is actually generated by ChatGPT. I guess it does give awesome solutions sometimes ??
As Milos just pointed out, the support does not… support problems outside Element (like plugins and stuff) even though the error only exists inside Elementor. This is a common reply I get when I have problems with Elementor. I do try to avoid it as much as I can, but sometimes clients need or use it.
Forum: Developing with WordPress
In reply to: Method is executed twice, but it shows oneThank you for replying.
I did try to turn off the plugins one for one, but none fixed it. The local environment is a copy of the production, including the plugins and their versions. SEO could be, but the names of the class, short code names, functions are really unique and the chances that another plugin executes the same function, class, short code, whatever is highly unlikely (unless I’m not really understanding that part of your reply).
I did try the error_log(), but it didn’t show me anything that could be the problem. It showed me some warnings that are not my plugin (local and production) and there were visitors on the website (and I am trying to promote some products involving clean coding ?? ), so I did turn off rather quickly. The warnings were not from an SEO plugin.
I did found ‘a’ solution, not sure if it is the correct way, but it does work for now:
It seemed to be the theme. There was an update and when I updated that is seemed to work. But… I also had an update from Elementor Addon Components, which was also updated before I could rule out the theme or the plugin.
Anyway, it seems to be working now. Thank you.
@andrewshu Thanks! Added it to my website and all works.
Thank you. To bad I didn’t find it on my own.
Shouldn’t this fix be in the plugin already? I have the latest version but still gives me this problem.