WordPress is stripping the Alt tag’s quote marks from images where Alt is not set, but leaving the word ‘alt’ creating problems for ADA compliance

How do I get around this? For ADA compliance I specifically need alt="" on some of my images in a wordpress site, however wordpress is stripping the Alt tag’s quote marks from images where Alt is not set, and just leaving the word ‘alt’ without the quotation marks. How do I make sure the Alt tags are left intact with their quote marks? I just need it to say alt="" instead of alt. ! 😀

What is the wordpress way of displaying local external content?

I have a somewhat tricky situation. A company’s internal server, running some unknown software (means I have no access whatsoever), exports data to my http server via a custom API. This data gets stored in the same MySQL environment as WordPress. Just a different DB. Meaning DB1 has the WP data, DB2 holds the imported company data.

Posts title instead of Pages and Category titles – PHP WordPress

In order to have two blogs on one website, I was able to put in the menu two categories: DOCUMENTATION and ACTUALITES.
My problem is in the header. The titles are displayed well however for both categories, the titles correspond to the title of the last article of the page…
You can see an example in the picture (You will see that the CONTACT page is OK but for the DOCUMENTATION and ACTUALITES pages the titles are those of the last article).
I would like to replace these article titles with those of the DOCUMENTATION and ACTUALITES categories.
I think I have found the problem code but I don’t know how to solve it.

Keep custom fix in a plugin

I have a plugin that needs a (very) custom feature, for a site I’m making.
I’ve found it in the code, where I can remove some lines of code, so the feature is accessible as I would like. But I’m not sure how to maintain this custom fix in the future.

dynamic css file for admin / backend and get_option results in Uncaught Error: Call to undefined function get_option()

I try to style the admin area with a dynamic css. I need to configure some elements regarding the frontend user defines. He can choose a color and this color should reflected in some elements in the admin area (e.g. buttons in admin area).
My approach: Setting up a evacolor.css, but let apache interpret this as a php file. This works so fare:

update a value in wp_options

This seams to be basic -but I don’t get it. If I query an option with get_option I get the string: [{"title":"Brand Primary","value":"#2185D0","_id":"627a0637cf178d93e50be224cc07cd6e"},{"title":"Brand Secondary","value":"transparent","_id":"017280d9ec94a585c2de0bee8f49d8fb"},{"title":"Typo normal","value":"#383838","_id":"ff77119a11466c8d7a0efd612109fe6a"},{"title":"Typo on Brand Base","value":"#383838","_id":"8a3c1eebb8067b37fc47fc505f44b8b4"},{"value":"rgb(255, 255, 255)","title":"Typo on Brand Active","_id":"66fe7ced-3ef8-4dac-92c7-568d604c2931"}] How can I change with php the value ‘#2185D0’ (Brand Primary) and ‘#383838’ (Brand base) without using this values by themselves (the … Read more