Saving changes in wp_editor

First of all the the_editor() function has been deprecated and it’s advised to use the wp_editor() instead. Just to explain how the value is being saved, your value in the textarea isn’t being saved by the textarea element but instead and most likely by update_post_meta. To replace your textarea with wp_editor, you can define it … Read more

WordPress on AWS with ELB

Finally I managed to solve this issue. The problem i had was on the ELB with the sticky sessions. I just enabled it and set a time of 3600 and now wordpress in login in users. A question remains with the real ELB power. If you do this sticky session I found some documentation that … Read more

Simple ajax call not working in wordpress plugin

You have to put the name of your wp ajax action in your data when you do the ajax call. I assume the ajax url is correct. jQuery( document ).ready(function(){ //alert(“Jquery Loaded”); jQuery(“#pub_search”).click(function(){ alert(“You clicked”); event.preventDefault(); var term= $(“#sterm”).val(); console.log(‘your term send: ‘+term); var data = {‘nwterm’: term, ‘action’: ‘litsearch’} $.get(litsearch.ajaxurl, data, function(data){ $(“#container”).html(data.response); }); … Read more

Images not showing after changing wp-content folder name

The safe way to change wp-content folder, is the following: First, define the new wp-content name in your wp-config.php file: define (‘WP_CONTENT_FOLDERNAME’, ‘hamza’); Then, define the new path for images, style, scripts, etc: define (‘WP_CONTENT_DIR’, ABSPATH . WP_CONTENT_FOLDERNAME) ; define(‘WP_CONTENT_URL’, WP_SITEURL . WP_CONTENT_FOLDERNAME); This will allow your plugins and other stuff to be notified about … Read more

Can I use a plugin for a singular page on my website?

What you want is definitely possible. Although technically it’ll not be just a single event page, rather an event directory. Under that directory there will be single event links created by the event plugin you’ve mentioned. However, those single event links will not have any physical static files, rather those will be managed by WordPress … Read more

Using custom JS plugins with WordPress?

Welcome (I’m new myself, too). First and foremost, I highly recommend setting up a Child Theme for your Divi installation; that way any modifications you make won’t be overwritten when Elegant Themes do an update. That said, the best way at this is to use WordPress’ native en queuing system. In your functions.php file, add … Read more

Two (or more) looks, with one set of content

I’ve done something pretty simmilar once where I had 2 websites that shared most of their content and had differing color schemes. Here’s how I would approach this challenge Use Multisite and child themes in the following way: Website 1: This holds the content and acts as the main theme (e.g. Red). This is just … Read more