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

Trouble figuring out how to get my button to submit comment

Try this. You were missing the tags and the “type” attribute for the tag. The php tag at the bottom echo’s the result that was input in the textarea. Read this http://www.w3schools.com/html/html_forms.asp it should help you get started. <div class=”font-wrap”> <div class=”wrapper”> <form action=”” method=”post”> <textarea name=”comment” id=”comment” class=”talk-bubblecomment” tabindex=”4″ placeholder=”Enter comment…”></textarea> <p class=”sign-in”> Post … Read more

Where is the POST response body generated in PHP? [closed]

The answer is, anything that is echod after the POST request, is sent back to the requester via the RESPONSE body. Thus any echo statements issued after processing whatever was sent via the $_POST is generated and sent back. In this template’s case, it would be better to re-direct the user immediately to a new … Read more