Posts by That Brazilian Guy • 332 points
6 posts
-
1
votes1
answer103
viewsA: Wordpress Wp_query - How to show parent post only?
For this, you can use the parameter post_parent. When a post has "0" as Parent, it means it has no father, so it is not post son. $args = array( 'post_type' => 'novellist', 'post_parent' => 0…
-
1
votes1
answer133
viewsQ: Always include arguments when running Docker-Compose run
I have a question about passing arguments in the Docker-Compose run: I’m wearing a Dockerfile which has the following entrypoint: ENTRYPOINT [ "/bin/wp" ] CMD [ "--allow-root", "--help" ] I need the…
-
3
votes0
answers65
viewsQ: WP-CLI and Drush in isolated Docker containers
I’m starting to use Docker contêneres to instantiate local development environments, mainly for Wordpress and Drupal. Two tools that I use a lot in my workflow are wp-cli and drush. Following the…
-
2
votes1
answer265
viewsQ: Sending SMTP email in Wordpress via server with self-signed certificate
I have a Wordpress Multisite (4.3) on a server where sending emails is blocked. To send emails, an external server with authentication must be used. By default, the native function wp_mail()…
-
11
votes2
answers262
viewsQ: How to parse syntactically malformed HTML?
As part of a procedure, I need to extract the contents of a table present on a page. I’m using Curl to get the raw HTML data and the Simple HTML DOM Parser to parse and process HTML. <?php //…
-
2
votes1
answer255
viewsQ: Field separation in array
I have a string consisting of (enclosed quotes): "campo","outrocampo","maisumcampo" I need to separate these fields, without the quotes, into an array. What I’m doing is a $string = str_replace('"',…