• Troubleshooting
    • Advanced

    This has nothing to do with WordPress but with the system you use for hosting and which provides the services including the SSL certificate: your Rasperry Py. My recommendation would be that you turn to a community that supports the system you use.

    You are looking for a “Drag&Drop Upload field”. You can do that with different form plugins, both free and paid. Here is a free option: an addon for Contact Form 7. https://wordpress.org/plugins/drag-and-drop-multiple-file-upload-contact-form-7/ And a paid option would be WPForms, they also have a video about it in their tutorial: https://wpforms.com/docs/a-complete-guide-to-the-file-upload-field/

    Well then, delete it!

    What kind of download do you mean exactly? Are you talking about files on your website? If so, how big are they? What file type? A link as an example to look at would be helpful.

    Hi Steven, A quick comment, the Agriculture theme is no longer available to download and also, the Agriculture theme is not the activated theme the site is using. I’m not sure that makes any difference…?

    You are concerned with the scheme here: https://schema.org/LiveBlogPosting If you want to do without a plugin for this, it would only be feasible via a template customization. Say: create a child theme of your theme and adjust the respective template files according to your wishes. On the above link you can also see an example of how you should be output. Since you use GeneratePress as a theme, you could also inform yourself with them what would have to be done for this. You can find a discussion about this in their forum here: https://generatepress.com/forums/topic/schema-markup-best-practice/

    It would be good to know what kind of source code this is and where to see it on your site? A link would be good as well.

    Hello, I have created a custom taxonomy: function dh_year_init() { $labels = [ 'name' => _x('Years', 'taxonomy general name'), 'sigular_name' => _x('Year', 'taxonomy singular name'), 'menu_name' => _x('Years', 'Admin Menu text'), 'all_items' => __('All Years'), 'edit_items' => __('Edit Year'), 'view_item' => __('View Year'), 'update_item' => __('Update Year'), 'add_new_item' => __('Add New Year'), 'new_item_name' => __('New Year Date'), 'parent_item' => __('Parent Year'), 'search_items' => __('Search Years'), 'not_found' => __('No Years Found'), 'back_to_items' => __('← Back to Years') ]; $args = [ 'labels' => $labels, 'description' => 'The Year the Puzzles were Published', 'public' => true, 'publicly_queryable' => true, 'hierarchical' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_rest' => true, ]; register_taxonomy('puzzle_year', null, $args); } add_action('init', 'dh_year_init'); The Taxonomy is attached to a…

    The “lazy” way to do that is to start with an ob_start() and return (and remove) that buffer at the end. The only issue is that using the “ob*” functions may disrupt some caching methods.

    @sterndata There is an HTML form element only in form.php. Now I understand the concept, I need to return the HTML rather than directly require it. Many thanks.

    A shortcode RETURNS its result. It does not echo or write directly to the screen. So, you can certainly produce forms through a shortcode; many forms plugins do eactly that. So, the question is what’s in your “form.php” file? Also, doing forms securely is not an easy thing, so rather than coding your own forums from scratch, it might be better to use an existing forms plugin.

    I wanna create a form with a shortcode so I can use it wherever I need it. I use the below minimal example: add_shortcode( 'form', 'create_form' ); function create_form () { require_once __DIR__ . '/form.php'; } But when I add the shortcode on the post and try to save it, it shows an error: ‘Updating failed. The response is not a valid JSON response.’ I have also noticed that WordPress specifies this: ‘shortcode should never produce an output of any kind’. If the shortcode is not meant for making such a task, how do I make a form and add it somewhere? Or the shortcode is okay but I misunderstood and doing something wrong?

    Hi I created a page that has a scrollable column of post listings in the left column, and a single post in the right column. I look for clicks on the posts in the left column using jQuery and load the relevant post in the right column using ajax and jQuery. No page refresh. I do it primarily to prevent a refresh of the left column on page load. Its working perfectly except for block editor items like a slideshow, or gallery. The required CSS and JS doesn’t seem to be written in page via the_content(). I found this: https://github.com/WordPress/gutenberg/issues/2768 and this: https://stackoverflow.com/questions/72635660/inline-styles-for-gutenberg-blocks-not-rendering-when-content-fetched-with-ajax Am I right in thinking blocks require inline css and js? When does that get added to the page? Can I force…

    Hello, Just thought I’d post an update for those who may wish to do something similar. I hid the various elements from subadmins using a mixture of Adminimize custom options and this: add_filter( 'admin_body_class', 'hide_from_subadmins' ); function hide_from_subadmins( $classes ) { if(current_user_can('subadmin') ) { $classes = 'user-role-subadmin'; } return $classes; } For elements that don’t have an ID, class or name, or that have attributes in common with other elements that I want to remain visible, I based it on tag position/count. Here’s a CSS example which hides the Website and Send User Notification rows from the Add New User page: .user-role-subadmin .form-table tr:nth-child(1n+5) { display: none !important; } Adminimize isn’t necessary, of course. I just had a bunch of custom options in it already…