Adding Custom Post Type Content to Elementor Custom Widget

I created a new Elementor Widget using the documentation provided here:

Creating a New Widget

The widget works fine from the demo for static content. But what I’d like to do is load content from a custom post type, and I can’t find any documentation explaining how to do that. I have a product-menu CPT, and used ACF for the fields. How do I load product-menu, and then have that displayed on the page when I drag and drop the widget?

From the example, the below functions I’m thinking are the ones for loading CPT content. Can someone give me a basic example of connecting CPT to the widget, then have that display on the page? I can figure out all options afterwards. Thanks!

protected function _register_controls() {     $  this->start_controls_section(         'section_content',         [             'label' => __('Content', 'vs-elementor-elements'),         ]     );      $  this->add_control(         'title',         [             'label' => __('Title', 'vs-elementor-elements'),             'type' => Controls_Manager::TEXT,             'default' => __('Title', 'vs-elementor-elements'),         ]     );      $  this->add_control(         'description',         [             'label' => __('Description', 'vs-elementor-elements'),             'type' => Controls_Manager::TEXTAREA,             'default' => __('Description', 'vs-elementor-elements'),         ]     );      $  this->add_control(         'content',         [             'label' => __('Content', 'vs-elementor-elements'),             'type' => Controls_Manager::WYSIWYG,             'default' => __('Content', 'vs-elementor-elements'),         ]     );       $  this->end_controls_section(); }  protected function render() {     $  settings = $  this->get_settings_for_display();      $  this->add_inline_editing_attributes('title', 'none');     $  this->add_inline_editing_attributes('description', 'basic');     $  this->add_inline_editing_attributes('content', 'advanced');     ?>     <h2 <?php echo $  this->get_render_attribute_string('title'); ?>><?php echo $  settings['title']; ?></h2>      <div <?php echo $  this->get_render_attribute_string('description'); ?>><?php echo $  settings['description']; ?></div>      <div <?php echo $  this->get_render_attribute_string('content'); ?>><?php echo $  settings['content']; ?></div>     <?php }  protected function _content_template() {     ?>     <#     view.addInlineEditingAttributes('title', 'none');     view.addInlineEditingAttributes('description', 'basic');     view.addInlineEditingAttributes('content', 'advanced');     #>     <h2 {{{ view.getRenderAttributeString('title') }}}>{{{ settings.title }}}</h2>      <div {{{ view.getRenderAttributeString('description') }}}>{{{ settings.description }}}</div>      <div {{{ view.getRenderAttributeString('content') }}}>{{{ settings.content }}}</div>     <?php } 

What is the name of the widget that is used for showing tutorials about a frontend app

There are some sites I’ve been on where, the first time you visit it, it will show you a little tutorial.

The tutorial will have big round animations that encircle a button and say something like “Click this button to add an item to your shopping cart!” and then you click Next and another button is highlighted, etc.

Is there an official name for this widget, or behaviour? I remember seeing a widget framework like “material-ui” contain aa widget like this but I don’t remember…

widget personalizado wordpress

Tengo un widget personalizado en wordpress (como si fuera un plugin) en el que ya partía de un código de un compañero y después de ir cambiando partes y adaptándolo (algo que he hecho otras veces sin problema) cuando pongo el widget en cualquiera de las áreas (barra lateral o pie) desaparece del listado de widgets que se pueden usar. Vamos, que sólo se lo puedo poner en un área. Evidentemente no puedo ponerme en contacto con esta persona. Por si puede ser por algo así o de alguna pista, este código es muy antiguo y he cambiado algunas funciones que ya estaban obsoletas.

¿Alguna idea de por qué sucede esto?

How to hide a widget from the main shop page

I want to hide an attribute widget from the main shop page. For example an atteribute widget such as colour doesnt need to be in the main shop page. It only needs to be there when a category is chosen in which there are colour variations. I want to hide the ‘type’ widget from the main shop page at simplicy.com.bd. How do i go about doing it?

Como puedo mandar llamar un widget en el Tab BAR con FLUTTER?

En los ejemplos que vienen en todas las paginas podemos hacer tab con iconos pero en el ejemplo manda llamar una imagen mi pregunta es como puedo darle click al icono del tab bar y que me mande llamar un widget o archivo .dart

ya que en el ejemplo solo viene para mandar llamar icons!!!!!


========================================================================

Email Notifications for news widget

I’m creating a template that will be used by for multiple sharepoint sites and was wondering if there is any way that site users can receive email notifications for new news updates so that they don’t have to constantly check the site. This has to be turned on out of by default in the “template” so that each site owner who uses the template doesn’t have to set it up manually. If this isn’t possible are there any alternatives? I’ve looked into the announcements list with flow but it doesn’t seem like they support each other either. Thanks 🙂

Display current post position in Elementor Posts widget

I’m using Elementor 2.6.8 + Elementor Pro 2.6.2

I’m designing an Archive template to display a list of Custom Post Types filtered by custom taxonomy terms. I’m using Posts Widget from Elementor Pro to do this without a line of code.

Also, thanks to Ele Custom Skin plugin (1.2.0), I can design each post skin in a custom way (hopefully Elementor Pro will provide this in the future)/

Now, I want to display, in each post, the post’s current position in the list (=in the WP loop).

I tried with this code snippet that I added to each post with the ShortCode Widget.

add_shortcode( 'current_post_count', function () {     global $  wp_query;     $  out = $  wp_query->current_post;     return $  out; } ); 

But this always return -1.

I suppose the reason is that, in the context of the Posts Widget, the global $ wp_query is not the one to get the info from. I suppose the widget use another variable. But thenm I don’t know how to achieve this. Maybe if I could get the actual $ query variable in use ? Or maybe use the Query ID parameter offered by the Posts Widget?

I don’t know how to get this to work.

Anything to point me towards the right direction guys? thanks!

KDE pager widget change size

I’m usually using 4 virtual desktops and I like to keep the so-called pager widget in the taskbar, which shows which desktop I’m currently looking at.

But the widget is relatively large:

enter image description here

Is there a way to decrease the width of the desktop symbols in the pager widget?

My plasmashell version is 5.12.8.