Posts by Gustavo Pereira • 1 point
4 posts
-
0
votes1
answer86
viewsA: How to validate the field by passing a value through the change method
It can be done as follows to change the selects that are above what you are changing const selects = document.querySelectorAll(".unity"); function selectChange(end=0,value) { for(let i = 0; i<…
-
0
votes4
answers480
viewsA: Align text vertically to an image
You can use the flex display with align-items https://developer.mozilla.org/en-US/docs/Web/CSS/align-items .flex { display: flex; align-items: center; flex-direction: row; } You add the class in the…
-
0
votes1
answer175
viewsA: How can I call a php file inside a wordpress plugin
You can use admin_post_(action). When you create your form in front-end you add the input <input type="hidden" name="action" value="nome_da_funcao"> Inside your plugin you add the Hooks…
-
0
votes1
answer159
viewsA: Create a loop for each post category
Edit your custom post type template via template. https://developer.wordpress.org/themes/template-files-section/custom-post-type-template-files/ When displaying categories instead of using a button…