Configure ubuntu on digitalocean so that URL of main domain without www in front can work [closed]

I have a Ubuntu 20.04.3 LTS virtual machine running nginx/1.18.0 on DigitalOcean.

Currently, when I key in the URL https://www.main-domain.com, it works. However, when I key in the URL https://main-domain.com, I get the following error;

This site can’t be reached. main-domain.com’s server IP address could not be found.

I am not sure whether this is a DNS or nginx problem.

How can I configure the digitalocean Ubuntu VM such that the URL https://main-domain.com without the www in front works?

How to create templates for a custom module to show on the front end within my theme?

I’d like to create a simple plugin with a form on the front end which submits the value of 3 fields into a DB table.

For the plugin, I’ve been using this answer: https://wordpress.stackexchange.com/a/162476/77891

What I can’t get working now, is a template.

Within the main plugin file, I’ve added:

add_action( 'gm_virtual_pages', function( $  controller ) {      // first page     $  controller->addPage( new \WEBP\Management\Page( '/custom/page' ) )         ->setTitle( 'My First Custom Page' )         ->setTemplate( 'custom-page-form.php' ); } ); 

And my custom-page-form.php:

<?php  echo "Test Echo";  ?> <p>Test</p> <p>Echo</p>  

The title is being displayed (My First Custom Page). But not my Test Echo. How does a correct / working template file have to look like?

How can I exclude the latest post from the front page?

I’m trying to exclude the latest post from the homepage/archive page. The closest I’ve gotten is by using this.

function exclude($  query) {       if ($  query->is_home() ) {           $  query->set('post__not_in', array(1111));       } } add_action('pre_get_posts', 'exclude'); 

Instead of using array(id) to select a post and exclude it from the query — how do I make it so it automatically picks the latest post?

Thanks.

Front end fails to represent correctly boxes

Context

Sometimes my front end misrepresents some output typically involving associations. For instance

EmbedCode[CloudDeploy["hello, world"]] 

should produce

enter image description here

according to the documentation but in fact yields

EmbeddingObject[Association[EnvironmentName->HTML,CodeSection->Association[Content->,Title->Automatic,Filename->cloudembed.html],CloudObject->CloudObject(https://www.wolframcloud.com/obj/2f2939a8-cd27-4c9a-99a2-c8ea44db36a6)]]

Question

How to fix this?

Posting to a Custom Post Type from front end – user generated content

Is there a fast and reliable way of posting to a Custom Post type from the front end? My use case is for creating a daily checkin for a fitness trainer. I have created the necessary fields using ACF. And I was trying to create a front end post form using ACF Frontend for Elementor plugin. But in the plugin my post type doesnt show up at all. All in all I’ve tried various methods and I help with something concrete and reliable.

Thanks in advance!

Can’t have a front page on a child theme [closed]

I’ve been developing a child theme for busiprof, and had the very poor sense to update busiprof itself. After the update my front page was mostly gone, only the header and footer are displayed. I’ve tried to remove everything but the css file and it does the same. If I activate busiprof I have a front page, if I activate the (supposedly identical) child theme I only get a header and a footer. I’ve tried to link it to a static page but it still won’t display.

Thanks in advance for any help

Front – end design for a MySQL database

Good day everyone!
I have a personal database of film-noir movies. I am looking for a program that I could use to build a front-end on my website to attach to the MySQL database. It will list the title, actors, plot, comments, rating and the film image. I want to be able to advance to the next movie if I want and to be able to search. I do not want to use WordPress. I want to build it myself. I do not mind learning. Most of everything I read is building an App or using WordPress. Thank you.

Remove widgets on mobile front page without affecting desktop

I customized my desktop page with widgets so that the articles are arranged into different aesthetically pleasing sections… but on my mobile page, I’d like all the articles to just show up by order of last published without being arranged into sections.

Is it possible to not have the widgets on the mobile page separately… while still having widgets on desktop?

I saw a lot of answers that mentioned CSS media queries, but it looks like that’s just adjusting header/stylistic things. I also saw a thing about redirecting, but I would prefer for the mobile to have the same link as the desktop. Is this possible?

Thank you so much.

Edit: I would also like to be able to add back the function of having the latest posts on mobile, as I had to remove it from desktop.

Can Mask of the Wild allow you to basically ‘disappear’ in front of your opponent if in a light foliage area? [duplicate]

Hiding on P177 PHB states

You can’t hide from a creature that can see you clearly.

Then Mask of the Wild PHB P24 indicates

You can attempt to hide even when you are only lightly obscured by foliage, heavy rain, falling snow, mist, and other natural phenomena.

So, can a wild elf in melee combat with a creature in a wooded area with light bushes around them simply take a move action, move 5 feet in a light foliage square, then use his action to hide right in plain sight of his opponent (5 feet away)? Then complete his movement using the cover of the light foliage to escape ?

I am looking for the RAW ruling on this no interpretations must be traced back to specific words in official written rules or official WotC rule clarifications