Using the wp_remote_post response body

Your question doesn’t make a lot of sense. The submission works but I get the returned URL as an HTML stream in $response[‘body’] but I cannot seem to get any query string values from it. That is what is supposed to happen. You requesting a web page just as when you click a link in … Read more

What does that mean: cannot use a scalar value as an array [closed]

A scalar value is something you can put on a scale: an integer or float value (4 or 5.5) or a string. That means WPBMap::getParam(‘vc_row’, ‘el_class’); doesn’t return an array, but a number or a string, so you cannot treat $param as an array with $param [‘description’]. Find out why you don’t get an array.

Can’t find text source file in WP theme [closed]

The “REDESIGN YOURSELF” text on the linked website appears to be the blog’s tagline – a short sentence or catch phrase describing the blog. You can change your tagline via the field provided in the administration dashboard on the Settings > General page. See this entry from WordPress.com’s support section for more information. (note that … Read more

Convert ACF checkbox choices to links [closed]

Here is my final solution for anyone else facing the same problem: <?php $values = get_field(‘services’); if($values) { echo ‘<ul>’; foreach($values as $value) { echo ‘<li>’ . ‘<a href=”glossary/#’ . strtolower(str_replace(‘ ‘, ‘_’, $value)) . ‘”‘ . ‘>’ . $value . ‘</a>’ . ‘</li>’; } echo ‘</ul>’; } ?>

how can I make content from a plugin hidden when user is logged in? [duplicate]

“[C]an you give me all options that are possible”? (emphasis added) No, because HTML, CSS, JS, PHP, and WordPress are powerful and sophisticated. Below are are some different approaches, however. [Affiliation: I am not affiliated with any plugins or programs listed here.] is_user_logged_in() In WP, the level closest to the code is to use the … Read more

archive per year with monthly

To display monthly archives arranged by year, you can use this code. It checks through each month if WordPress have any post in that month and create archive. <?php global $wpdb; $limit = 0; $year_prev = null; $months = $wpdb->get_results( “SELECT DISTINCT MONTH( post_date ) AS month , YEAR( post_date ) AS year, COUNT( id … Read more