Posts by Marcos Nakamine • 170 points
5 posts
-
0
votes2
answers130
viewsA: How to place 2 events. click() on a button
Just exemplifying what the Gabriel José de Oliveira said there in the comments: $(".dashboard-button").click(function(){ $(".navbar-dashboard").toggleClass("active"); }); The function toggleClass…
-
5
votes2
answers456
viewsA: Fill text-area field while input information is entered
Here is an example with the onkeyup (as @Leonardo-Getulio said): HTML <textarea id="iptDetalhesCopia"></textarea> <input onkeyup="FuncaoTeste( this.value )" type="text"…
-
0
votes1
answer37
viewsA: Replace random text between two known strings
In the given example, the solution would be this (remembering that this only works on Mysql 8.0+): UPDATE wp_posts SET post_content = REGEXP_REPLACE( post_content, '^<inicio do texto…
-
0
votes1
answer154
viewsA: Loops Wordpress without repeating the post
As said the Hegon Felipe, the ideal is to treat the same duplication problem. Below is a solution for didactic purposes only (it removes from the loop, posts with the same title): Edit 1: Remove…
-
0
votes2
answers178
viewsA: How to create a new Postbox in Wordpress
The secret is to put the parameter side in function add_meta_box function custom_add_meta_boxes() { function custom_add_meta_box_teste() { ?> <p>Lorem ipsum dolor sit amet, consectetur…