Posts by Lucas Azambuja • 99 points
4 posts
-
0
votes1
answer90
viewsA: Display new and old posts on wordpress pages
<?php $args = array( 'numberposts' => 5, //numero de posts que vai exibir 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', …
wordpressanswered Lucas Azambuja 99 -
1
votes2
answers231
viewsA: Searching array value within another array and return
If I understood what you want, it would be this? function coresLinhasPorPocsag() { let linha = '' const coresLinhasPorPocsag = ["#4d79ff", "#ff6600", "#00cc88", "#b31aff"] const arr = [23,0,0] for…
javascriptanswered Lucas Azambuja 99 -
1
votes1
answer18
viewsA: Wordpress: Rewrite Line Code
your plugin would need to be with a filter in the code $return = apply_filters('my_plugin_post_title', $post->post_title); and you would apply this to your functions.php: function…
-
4
votes3
answers4175
viewsA: How to change a PHP array’s key
<?php $task=array('Title' => 'Test', 'Description' => 'Description test'); $task['NovoNome'] = $task['Description']; unset($task['Description']); ?> …