Posts by Mr Genesis • 464 points
28 posts
-
4
votes1
answer47
viewsQ: Why does the "delete" operator not remove references to a deleted Javascript property?
I am reading a book about data structure in Javascript and came across the following situation: why delete does not delete a reference value? I will give an example to be clear. const items = { a:…
-
1
votes1
answer30
viewsQ: Sum quantities in objects with identical properties
I’m doing a job and I came across a question that is apparently quite simple, but I’m not getting it. I need to do a reduce (or could be otherwise as well) to sum the quantity of items with the…
-
0
votes1
answer16
viewsQ: View Taxonomy on the edit page
Hello. I don’t know what happened that I can’t do to taxonomy appear on the posts editing page. I don’t know what’s missing from the code, see: <?php function registraIdiomas(){…
-
0
votes1
answer221
viewsA: Nodejs update
You should completely uninstall the nodejs. For this see this link below: How to deinstalar nodejs:…
-
0
votes1
answer24
viewsQ: Select index object in AWS S3
I don’t know how to allow access to the index.html file without specifying it: see: If I do not include the name of the index.html file shows error measurement. How can I free access to the folder…
-
1
votes1
answer176
viewsA: Wordpress and Woocommerce - Wc_order
I looked a little deeper and found that I was very close to solving the problem. I found a very interesting comment that showed me that what was missing was to define the global $wpdb before. And…
-
0
votes1
answer176
viewsQ: Wordpress and Woocommerce - Wc_order
I need help with a project. I have developed a completely custom site in Wordpress. Total pages are standardized, but the user can only access the pages if they have active product. So I need to…
-
0
votes1
answer1411
viewsQ: Comment on files . env
Is there any way to write comments on file . env on projects in Nodejs?
-
1
votes0
answers1993
viewsQ: Error: Cannot find module dotenv
I did the installation of modele as Dev: C:\Users\mrgen\OneDrive> npm i dotenv --save-dev npm WARN [email protected] No description npm WARN [email protected] No repository field. audited 299 packages…
-
5
votes2
answers410
viewsQ: Private class in Javascript
I’m looking for a way to make both attributes and methods invisible so they’re not accessible from outside the class. But I also wanted to use the modern approach to do this (class Nomeclass{}).…
-
0
votes2
answers3598
viewsA: How to consume webservice (WSDL) mails with javascript
I believe the official documentation will answer your questions. It’s only 32 pages; and you will download and read in PDF. It has everything you need to assemble your system. Best of all it is…
-
0
votes1
answer231
viewsQ: Javascript: Add Div by pressing a button - Typeerror: Cannot set Property 'innerHTML' of null
What’s wrong with my code. I’ve tried it on Codepen and it works normally. Even the order of the elements are the same there, but in my Wordpress does not want to work. Note that here also works.…
javascriptasked Mr Genesis 464 -
0
votes2
answers931
viewsA: Redirect file to URL via . htaccess
See if it works: redirect 301 http//dominio.com http://subdominio.dominio.com
-
0
votes4
answers68381
viewsA: Script returning Parse error: syntax error, Unexpected end of file
Dude, if you forget to put the name of Function gives this error too. For example: wrong way that generates this error: function(){ //vai gerar esse erro como se tivesse faltando chave '}' } Right…
phpanswered Mr Genesis 464 -
1
votes1
answer78
viewsA: Print dynamically URL of Wordpress posts page
I found the answer. I asked that same question on the official Wordpress forum and I was given the following answer: get_option( 'page_for_posts' ); The top code returns the ID of the posts page. To…
wordpressanswered Mr Genesis 464 -
0
votes1
answer78
viewsQ: Print dynamically URL of Wordpress posts page
How to make a echo on the post page URL when Wordpress is set to display a page as Homepage and posts on a specific page? For example: In Settings > Reading it is possible to define a static page…
wordpressasked Mr Genesis 464 -
0
votes1
answer49
viewsA: Category Loop in Wordpress
I found the answer in wordpress documentation. Just use the following function: wp_list_categories('show_count = 1'); Where "1" is true that indicates it is to show the count. Default "0" (zero).…
-
0
votes1
answer49
viewsQ: Category Loop in Wordpress
Does anyone know how to create a loop to display categories and how many posts are in each one? Example: Category X (15) Category-y (32) Category-z (40) Where "category"=category name and the number…
-
0
votes3
answers892
viewsA: I can’t get one div stuck on the other
I put display:flex; in father div and solved my problem. Thanks! But if still cuff can explain me this question will be good to know. This left me with "a flea behind my ear". I think the div should…
-
0
votes3
answers892
viewsQ: I can’t get one div stuck on the other
I want to put the 3 divs on the same line with width: 33.3333%, but a space is appearing between them. Note in the image that the padding, margin and borda are zero, and I have declared…
-
1
votes2
answers164
viewsQ: Filter Loop Wordpress
How can I filter the loop in Wordpress? I need to create several loops with different filters. Example: Extract the last post from category x.
wordpressasked Mr Genesis 464 -
1
votes1
answer321
viewsQ: PHP within css is possible?
I am changing the logo of the Wordpress ligin screen. For this I am using PHP to filter the function by changing the CSS. But since I have several services like this, I need to do it dynamically,…
wordpressasked Mr Genesis 464 -
1
votes2
answers3218
viewsQ: Nano for Windows
Does anyone know how to install "nano" to use in windows CMD? I’m learning to use command line to stop using graphical interface, but I’m having enough difficulty setting up the tools in windows.…
-
1
votes1
answer1176
viewsQ: Wordpress: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2 bytes)
Does anyone know how to fix this error? I’ve already set up the wp-admin.php file and . htaccess, but it still has the same error
wordpressasked Mr Genesis 464 -
3
votes2
answers715
viewsQ: What does && ! mean in PHP?
I am trying to know this, but it appears nowhere. There is a gap between & & e !. if ( is_home() && ! is_front_page() )
-
11
votes2
answers1673
viewsQ: What is the purpose of : (two points) in PHP?
I have this question that is leaving me with a flea behind my ear. I don’t understand at all. What does the sign of : two points. Someone can explain me? Example: if ( have_posts() ) : while (…
-
1
votes3
answers118
viewsQ: CSS or JS selector
I have a paragraph with no id that I need to style. Styling can only occur for this paragraph. Example: <p>Conteúdo</p> So I want to apply CSS only to it. seletor {estilo;} Note: I…
-
0
votes1
answer796
viewsQ: restrict options for type="date" and type="time" fields
I am making a scheduling form. The company is not 24 hours and does not work every day of the week. In this case I need to narrow the options according to the company calendar. I thought to validate…