skip to Main Content

change color of a text in php with echo

I use Sambroadcaster change color of a text in php with echo this is the code: <span id="currently-playing-title"><?php echo $currentSong->artist_title;; ?></span><?php if ($currentSong->isRequested) echo "[Request]"; ?> This is the text that i want to change the color [Request] The next…

VIEW QUESTION

PHP echo field, field appears before div – WordPress

I have the following code: if( get_field('event_timedate') ): echo "<div class='bm-event_timedate'><p>".the_field('event_timedate')."</p></div>"; endif; But for some reason the output is (the date appears before the div and p tags) 27/08/2022 8:00pm <div class='bm-event_timedate'><p>".the_field('event_timedate')."</p></div> Id really appreciate any help, thanks in advance!

VIEW QUESTION

Escape when echoed – WordPress

I've been trying to submit a plugin for review and I keep having problems with the echo line. The last version I sent was like this. <option value=""> <?php _e( '- Default', MF_TEXT_DOMAIN ); ?> </option> <?php foreach ( $folders…

VIEW QUESTION
Back To Top
Search