How can I properly loop through an array gotten from my wordpress database and display it to my site

I am trying to display some posts information from my database on my live site. I have done the query correctly because I can view the items on the live site. But I need to take three items to display. The post title, the post content which houses the images, and the post id which links to the posts. I seem to have written it correctly but it does not do anything.

This is the code

<?php      global $  wpdb;                    $  results = $  wpdb->get_results( "SELECT * FROM $  wpdb->posts WHERE `post_type`='post' AND `post_status` = 'publish' LIMIT    20" );    foreach ($  results) {       echo "<div class="card">             <div class="img">              <img src="{post_content}" alt="">             </div>             <div class="info">                <h5>{post_title}</h5>             </div>           </div>";   }    //echo "<pre>";print_r($  results);echo"</pre>";                      ?>  

I am quite new to wordpress and PHP in general.

[ Politics ] Open Question : Why would anyone vote to give Trump another term when things have gotten so much worse under him already in less than four years?

Just look at the state of the country today: Massive protests in the streets. 40 million+ people out of work. 100,000+ people dead from coronavirus. Racial relations badly strained.

Why User Id gotten from sharepoint siteusers api or user information api different from sharepoint Task AssignedToId?

Im trying to create a task using sharepoint rest api, in doing so Im trying to add assignee as well which is done through adding AssignedToId. The user Id I get for a particular user using the user information api or clientPeoplePickerSearchUser api with site users api (e.g. user retrived with Id 28) is different from what it wants as AssignedToId (AssignedToId it wants is 14) for the same user.

I have tried the api user information api

GET /_vti_bin/ListData.svc/UserInformationList?$  filter=(substringof('" + params.searchKey + "',Name) and ContentType eq 'Person') 

And also the clientPeoplePickerSearchUser

POST /_api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser let data = {                 queryParams: {                     AllowEmailAddresses: true,                     AllowMultipleEntities: false,                     AllUrlZones: false,                     MaximumEntitySuggestions: 50,                     PrincipalSource: 15,                     PrincipalType: 15,                     QueryString: params.searchKey,                     Required: false,                     UrlZoneSpecified: false                 }             } let users = JSON.parse(              // return users             let userUrl = this.userProvider.resource + "/_api/web/siteusers?"             let promises = []             for(let user of users) {                 let actualUrl = userUrl + "Title eq " + user.DisplayText                 console.log('user is: ', user.DisplayText)                 promises.push(axios.get(actualUrl, {                     headers: headers                 }))             } 

Has Wi-Fi hacking gotten almost impossible?

I have read about Wi-Fi password cracking for a while and used different tools my self, such as:

  • Airodump for monitoring
  • Aicrack for getting key from cap files for WEP/WPA/WPA2
  • Reaver for WPS
  • Bully for WPS
  • Reaver and bully with PixieWPS for WPS

I have tried the tools on WEP, WPA and WPA2, where only WEP is able to get cracked. The weak point of routers was WPS, but reaver and bully seems outdated and I have not gotten them to work on a single router yet. WPA2 cannot be cracked as far as I have understood, and the only way to actually get a password from WPA/WPA2 is by having a word list, which in itself is an extremely bad solution. There is an incredibly low chance of a password being in a word list, and if we talk outside the USA, they are non existant. Since WPS cracking seems to be secured, WPA/WP2 not being able to be cracked without word lists and WPA3 on the way, would that mean that currently Wi-Fi with WPA/WPA2 protection is most likely impossible to hack?

Gotten the B1 Visa for conference , Although missed the conference

Good evening,

I have a Valid B1 Visa for instance which is supposed to be used to go for a conference, later on i missed the conference, is there a chance i would have challenges at point of entry? Like would ICE ask me to present documentation for those? what if the conference is past and i have other business to take care of in my home country? Any issue of deportation here?