Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the astra domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/sqrtyhjzaqx471/public_html/wp-includes/functions.php on line 6121

Warning: Cannot modify header information - headers already sent by (output started at /home/sqrtyhjzaqx471/public_html/wp-includes/functions.php:6121) in /home/sqrtyhjzaqx471/public_html/wp-content/plugins/bbpress/includes/replies/functions.php on line 2160

Warning: Cannot modify header information - headers already sent by (output started at /home/sqrtyhjzaqx471/public_html/wp-includes/functions.php:6121) in /home/sqrtyhjzaqx471/public_html/wp-content/plugins/bbpress/includes/replies/functions.php on line 2161
» All Posts https://softechquery.com/forums/feed Wed, 02 Jul 2025 00:20:29 +0000 https://bbpress.org/?v=2.6.11 en-US https://softechquery.com/discussion/cant-use-elementor-widget-in-custom-template-filefile-created-in-template-parts-folder/#post-791 <![CDATA[How to use Elementor Widget in custom template file(file created in template parts folder)]]> https://softechquery.com/discussion/cant-use-elementor-widget-in-custom-template-filefile-created-in-template-parts-folder/#post-791 Mon, 18 Nov 2024 11:57:49 +0000 Divya Manka I have created custom template file in template parts folder (not with Elementor).I want to use Elementor widget in custom template. i coded this :-

<?php
use Elementor\Plugin;
use Elementor\Widget_Heading;

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

// Ensure Elementor is loaded
if ( ! did_action( 'elementor/loaded' ) ) {
    echo 'Please activate Elementor plugin.';
    return;
}

// Retrieve the widget manager
$widget_manager = Plugin::instance()->widgets_manager;

// Get the Heading widget class
$heading_widget = $widget_manager->get_widget( 'heading' );

// Check if the widget exists
if ( $heading_widget ) {
    // Set the widget settings
    $settings = [
        'title' => 'Your Static Title',  
        'size' => 'xl',                 
        'alignment' => 'center',         
        'header_size' => 'h1',          
    ];

    // Render the widget
    echo '<div class="elementor-widget-container">';
    $heading_widget->render( $settings ); // Render the heading widget with settings
    echo '</div>';
} else {
    echo 'Heading widget not found.';
}
?>

but i could not get the elementor heading widget data in custom template. I would like to know if it is possible to render an Elementor widget in this custom page programmatically, without using the Elementor editor. How can i do this.

  • This topic was modified 7 months, 2 weeks ago by Divya Manka.
  • This topic was modified 7 months, 2 weeks ago by Divya Manka.
  • This topic was modified 7 months, 2 weeks ago by Divya Manka.
  • This topic was modified 7 months, 2 weeks ago by softechquery.
  • This topic was modified 7 months, 2 weeks ago by Divya Manka.
]]>
https://softechquery.com/discussion/how-can-we-run-multiple-mysql-server-on-a-single-machine/#post-118 <![CDATA[Reply To: How can we run multiple MySQL server on a single machine?]]> https://softechquery.com/discussion/how-can-we-run-multiple-mysql-server-on-a-single-machine/#post-118 Thu, 10 Oct 2024 06:21:30 +0000 avi Yes, you just need to run them on separate ports and point them at different lib directories for their data.
Here’s a good reference: http://dev.mysql.com/doc/refman/5.1/en/mutiple-servers.html
(If you want to use this for testing, I suggest checking out MySQL Sandbox which is now replaced by dbdeployer)

]]>
https://softechquery.com/discussion/static-variable/#post-163 <![CDATA[Reply To: Static variable]]> https://softechquery.com/discussion/static-variable/#post-163 Tue, 08 Oct 2024 10:34:17 +0000 softechquery There really is no difference between a global variable and a public static variable. The class variable is namespaced a tiny bit better, but that hardly makes any difference. Both are accessible anywhere at any time and both are global state.

As it happens, I just wrote an exhaustive article on the subject:
How Not To Kill Your Testability Using Statics

]]>
https://softechquery.com/discussion/static-variable/#post-162 <![CDATA[Reply To: Static variable]]> https://softechquery.com/discussion/static-variable/#post-162 Tue, 08 Oct 2024 10:33:55 +0000 softechquery There really is no difference between a global variable and a public static variable. The class variable is namespaced a tiny bit better, but that hardly makes any difference. Both are accessible anywhere at any time and both are global state.

As it happens, I just wrote an exhaustive article on the subject:
How Not To Kill Your Testability Using Statics

]]>
https://softechquery.com/discussion/how-to-upload-webp-file-in-codeigniter/#post-161 <![CDATA[Reply To: How to upload .webp file in CodeIgniter]]> https://softechquery.com/discussion/how-to-upload-webp-file-in-codeigniter/#post-161 Thu, 03 Oct 2024 12:20:48 +0000 avneesh Add webp MIME Type in config file: ./application/config/mimes.php.
'webp' => array('image/webp'),

And in your upload config “allowed_types” add “webp” :
$config['allowed_types'] = 'gif|jpg|jpeg|png|webp';

]]>
https://softechquery.com/discussion/how-to-upload-webp-file-in-codeigniter/#post-160 <![CDATA[How to upload .webp file in CodeIgniter]]> https://softechquery.com/discussion/how-to-upload-webp-file-in-codeigniter/#post-160 Thu, 03 Oct 2024 12:17:49 +0000 avi I want to upload webp images using PHP CI Framework, Can anyone help how to upload .webp instead of jpg?

]]>
https://softechquery.com/discussion/how-to-send-email-in-ci-3/#post-159 <![CDATA[how to send email in ci-3]]> https://softechquery.com/discussion/how-to-send-email-in-ci-3/#post-159 Thu, 03 Oct 2024 12:17:01 +0000 abhijeet I want to send email in ci-3 with some message to user. How do this

]]>
https://softechquery.com/discussion/how-to-set-default-routes-in-under-folder-file/#post-158 <![CDATA[how to set default routes in under folder file]]> https://softechquery.com/discussion/how-to-set-default-routes-in-under-folder-file/#post-158 Thu, 03 Oct 2024 12:16:22 +0000 abhijeet I want to set default routes in ci 3 controller which is under the a folder

]]>
https://softechquery.com/discussion/send-to-model-on-update_city-function-get-error-city-is-already-exist/#post-157 <![CDATA[send to model on update_city function get error city is already exist]]> https://softechquery.com/discussion/send-to-model-on-update_city-function-get-error-city-is-already-exist/#post-157 Thu, 03 Oct 2024 12:15:45 +0000 abhijeet I am do this then solve error have any other way

public function insert_city()
{
$city_id = $this->input->post('city_id');

        $this->load->library('form_validation');
        $this->form_validation->set_rules('city', 'City', 'required|is_unique[city_table.city]', array('is_unique' => 'City already exist.'));
        if ($this->form_validation->run()) {
            if ($this->input->post()) {
                $state_id = $this->input->post('state_id');
                $city = $this->input->post('city');
                $city_meta_title = $this->input->post('city_meta_title');
                $city_meta_description = $this->input->post('city_meta_description');
            }
            $data = array('state_id' => $state_id, 'city' => $city,'city_meta_title'=>$city_meta_title,'city_meta_description'=>$city_meta_description);
            $this->load->model('Action_Model');
                $this->Action_Model->insert_city($data);
        }
        else {
               $this->load->view('admin/add-city');
           }

             if($city_id){
                if ($this->input->post()) {
                    $state_id = $this->input->post('state_id');
                    $city = $this->input->post('city');
                    $city_meta_title = $this->input->post('city_meta_title');
                    $city_meta_description = $this->input->post('city_meta_description');
                }

            $data = array('state_id' => $state_id, 'city' => $city,'city_meta_title'=>$city_meta_title,'city_meta_description'=>$city_meta_description);

        $this->load->model('Action_Model');
        $this->Action_Model->update_city($data, $city_id);
    }
]]>
https://softechquery.com/discussion/how-can-i-send-to-image-in-upload-file-with-write-one-time-upload-file-code/#post-156 <![CDATA[how can i send to image in upload file with write one time upload file code]]> https://softechquery.com/discussion/how-can-i-send-to-image-in-upload-file-with-write-one-time-upload-file-code/#post-156 Thu, 03 Oct 2024 12:14:30 +0000 abhijeet I want to send multiple image send to uploads file with write only single code for uploads file
and upload selected image to uploads file

]]>