Posts by Roberto Soares • 46 points
2 posts
-
1
votes1
answer328
viewsA: Error "Invalid argument supplied for foreach()" and "Undefined index" in PHP form
In this case $product = $_POST['product']; not receiving an array, try this <form action="" method="POST"> <input type="text" name="test1"> <input type="text" name="test2">…
-
2
votes2
answers117
viewsA: PHP - If (condition) in wordpress
In this case, you only need to change the operator. <?php $post_title = "Noivas"; ?> <div class="service-content <?php if( $post_title != 'Noivas' ) echo "qwp-content"; ?>">…