WordPress is a free and open-source content management system (CMS) based on PHP and MySQL for creating websites and blogs. Features include a plugin architecture, a template system and strong management, customization and search systems; through its dynamic presentation of content, webmasters have the flexibility to create websites easily.

Share tech news, updates, or what's on your mind.

Sign up to Post

On my page here http://ccdenver33.staging.wpengine.com/ I need to make the 2 links at the top called Donate and Newsroom into red buttons. Using CSS, any ideas experts?
i am working in wordpress project, and the problem is, if i log in from the admin panel and see the website its showing including tax for the product price, if i see the website normally means like user its showing the product price excluding tax, i want to show to the user including tax, in admin panel i given product price including tax then also its showing excluding tax   in the website.
all i need is the change the classes on the woocommerce buttons, for example the add to cart button. i want to do it with filter functions.
i have searched and found overriding css, i want to use the filter functions to do it, i assume one can use str_replace, but not sure how exactly.

best regards
hi, i am working with the wordpress website and am facing some issues regarding the browsers,
 if i open my website link in the google chrome then the product price coming including tax in the index page, if am open the website with mozilla firefox then its showing product price without tax, i want show in the all the browser same price means in the same way but its showing in fractional values, help me to solvethis

thank you

I keep getting the below error, I have a pretty big wordpress site with so many plugins
Is their anyway to diagnose what causing this error and fix it.

[23-May-2018 19:46:38 UTC] PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 20480 bytes) in (...)\wp-includes\class-wp-hook.php on line 271
[23-May-2018 19:46:38 UTC] PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 45056 bytes) in (...)\wp-includes\functions.php on line 3730
[23-May-2018 19:46:41 UTC] PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108872 bytes) in (...)\wp-includes\plugin.php on line 195
[23-May-2018 20:02:09 UTC] PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 262144 bytes) in (...)\wp-includes\plugin.php on line 201
[23-May-2018 20:02:09 UTC] PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
[23-May-2018 20:02:09 UTC] PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
[23-May-2018 20:02:11 UTC] PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108872 bytes) in (...)\wp-includes\plugin.php on line 195

I need to hide the area where it says Create an Account and Login on this page... https://ccdenver.org/givetoday/

Any ideas experts?
PHP: Is there a better/cleaner way to write the following?

if (empty($simple_location) && empty($var_location)) {
    $loc = '<p>' . join(' : ', $links) . '</p>';
} else {
    $loc = '';
if(!empty ($simple_location)) {
    $loc_a = '<p>' . $simple_location. '</p>';
} else {
    $loc_a = '';
if(!empty ($var_location)) {
    $loc_b = '<p>' . $var_location. '</p>';
} else {
    $loc_b = '';

Open in new window

This is a crazy mystery:

These two pages are using the same template file and template part. However, the Zozo tabs are not working on one of them and I can't figure out why?

Tabs are working:

Tabs are not working:

I can see that the classes are not being generated for the none working tabs page. But I don't get it. They are both using the same header.

Anyone see the issue?
In the attached image, you can see two ways of crowns in a triangle as border areas of the content of the page. One is just a plain white centered triangle with a small crown in the center of it, the second is that but also a background of repeated tiny ones. I have both crown images to use, but am having too much trouble trying to create the effects with css and keep it responsive.

I've been trying to test css for the triangle here below the main content: http://barkking2.wpengine.com/?page_id=9
username: demo pw: Heather

The triangle is just red so I could see what the css was doing. The only way I've been able to center it is using percentage in absolute positioning but it of course isn't responsive to different browser/mobile widths. The theme is divi, so even if it has to be part css and part html using a row and modules, that would be fine because it can be saved and reused throughout the site.

Any help getting this to work would be greatly appreciated.
Thanks, Heather
Trying to resolve certain wordpress php errors after upgrade.

PHP Fatal error:  Uncaught Error: Call to undefined function wp_normalize_path() in (...)\wp-includes\plugin.php:654
Stack trace:
#0 (...)\wp-includes\plugin.php(755): plugin_basename('(...)\\wp...')
#1 (...)\wp-content\plugins\bbpress-genesis-extend\init.php(44): register_activation_hook('(...)\\wp...', Array)
#2 (...)\wp-content\plugins\bbpress-genesis-extend\init.php(89): bbpge_init->__construct()
#3 (...)\wp-settings.php(84): include('(...)\\wp...')
#4 (...)\wp-config.php(205): require_once('(...)\\wp...')
#5 (...)\wp-load.php(37): require_once('(...)\\wp...')
#6 (...)\wp-blog-header.php(13): require_once('(...)\\wp...')
#7 (...)\index.php(17): require((...)\\wp...')
My technical blog site google page rank is Zero. Can somebody suggest me how to work on yoast SEO free edition. I need to know whether my existing configuration is wrong or not?
I cannot edit or delete items in Appearance/Themes/Menus.
My main menu has items that need to be removed. I expand them and click remove.
The items disappear.
I click Save Menu and the items return.

I am running 4.9.6 all plugins up to date.
What's going on here?
i have a button in my WordPress admin to add hotels images.
 when it is clicked it display an upload image link and a hidden text field to take the selected image.
the id of each button is incremented, so on select i can populate the right fields.
 when i click the button the media library does open and i can populate the right field, but only regarding the first selected button, since it retain the first id.
 i realize it is a scope issue, but i cannot make it work.
 the second one i click, is the correct is when on click, but after selection it is the first id. this is my code:
 var mediaUploader;
        var that = $(this);
        var thethisid = that[0].id.split('-')[1];

        console.log('outside id: ', thethisid);
    if (mediaUploader) {
    mediaUploader = wp.media.frames.file_frame = wp.media({
  title: 'Choose Image',
  button: {
  text: 'Choose Image'
    }, multiple: false });
    // When a file is selected, grab the URL and set it as the text field's value
mediaUploader.on('select', function() {
        var attachment = mediaUploader.state().get('selection').first().toJSON();
        console.log('inside id: ', thethisid);
    return false;

Open in new window

now, if i comment the return in the if statement, everything works, but then the media modal does't close. i believe it is a scope issue. i just need the same id in the select part as in the click part.

any suggestions?
I removed php 5.4.16 and installed php 7.2 and now when I access my wordpress site it isn't parsing php, when I run which php it shows not installed,  When I run yum -y update it says nothing to update.

Here is yum showing PHP was installed:
  php72-php-fpm.x86_64 0:7.2.5-1.el7.remi
  php72-php-gd.x86_64 0:7.2.5-1.el7.remi
  php72-php-mbstring.x86_64 0:7.2.5-1.el7.remi
  php72-php-mysqlnd.x86_64 0:7.2.5-1.el7.remi
  php72-php-opcache.x86_64 0:7.2.5-1.el7.remi
  php72-php-xml.x86_64 0:7.2.5-1.el7.remi
  php72-php-xmlrpc.x86_64 0:7.2.5-1.el7.remi

Dependency Installed:
  fontconfig.x86_64 0:2.10.95-11.el7   gd-last.x86_64 0:2.2.5-2.el7.remi
  jbigkit-libs.x86_64 0:2.0-11.el7     libtiff.x86_64 0:4.0.3-27.el7_3
  libwebp.x86_64 0:0.3.0-7.el7         php72-php-pdo.x86_64 0:7.2.5-1.el7.remi


Open in new window

What else do I need to do for it to recognize php is installed?

I am on a Centos 7 server


I'm trying to override 2 different JS files in my WordPress site's child theme, and am running into some major difficulty.

Here is the site URL: https://staging.royalpalm.com/

My goal is to change these 2 lines ..

<script type='text/javascript' src='https://royalpalm.com/wp-content/themes/houzez/js/houzez_ajax_calls.js?ver='></script>
<script type='text/javascript' src='https://royalpalm.com/wp-content/themes/houzez/js/custom.js?ver='></script>

Open in new window

To this:

<script type='text/javascript' src='https://royalpalm.com/wp-content/themes/houzez-child/js/houzez_ajax_calls.js?ver='></script>
<script type='text/javascript' src='https://royalpalm.com/wp-content/themes/houzez-child/js/custom.js?ver='></script>

Open in new window

This is what I currently have in my functions.php file .. in attempt to override these 2 JS files:


function remove_scripts() {
    wp_dequeue_script( 'houzez_ajax_calls' );
    wp_dequeue_script( 'houzez-custom' );    

add_action( 'wp_print_scripts', 'remove_scripts' );

wp_enqueue_script('myscript_ajax_calls', get_stylesheet_directory_uri() . '/js/houzez_ajax_calls.js', array('jquery'), null, true);

wp_enqueue_script('myscript_custom', get_stylesheet_directory_uri() . '/js/custom.js', array('houzez_ajax_calls'), null, true);

Open in new window

.. But I'm not able to dequeue the "houzes_ajax_calls" script for some reason.  I'm able to insert the houzes_ajax_calls.js file from my child theme, .. but the placement of it is incorrect (above the localized script that references "var HOUZEZ_ajaxcalls_vars" ) .. and the houzes_ajax_calls.js file 's now being duplicated.

If you view the underlying source code for the homepage, you'll see that the problem starts at around line #3690:


What am I doing wrong here?  And more importantly, how can I control the specific placement of the JS files in the bottom footer?

- Yvan
I'm getting ready to update some of the websites that I actively maintain so that they're "GDPR compliant", which we've all been hearing chatter about.  Most of the sites are WordPress based, and contain contact forms that send email and write the information to the database, as well as Woocommerce-based shopping carts and Mailchimp-based newsletter signup forms.  I've read several articles that suggest what I'm supposed to do to make the sites GDPR compliant, but they all fall short in my opinion, and don't really provide useful enough information.  

I'm going to first start by installing and configuring this plugin on my WordPress sites: https://wordpress.org/plugins/wp-gdpr-compliance/

In addition, I think I'm going to need to manually update some of my other non-WordPress sites with the following:

1) I will add a short text blurb explaining that data is being collected somewhere either on the website or form page
2) I will add some kind of required "I agree to these terms and grant you permission to store my data" checkbox to the forms
3) I will will create a new "Terms and Conditions / Privacy Policy" page (that's company specific), and add a link to it somewhere in the bottom footer

Does this sound about right? Or am I missing anything else here?

Also .. does anyone here know where I could find a suitable, generic "Terms and Conditions / Privacy Policy" page (perhaps one that's GDPR Compliance specific) that I could copy & paste from and use for all of…

I’ve been having a problem with a WordPress plugin and one of its add-on’s.  I’ve gone through the original developer of the plugin but got no help, and now stuck.

The plugins are

WP Job Manager
WP Job Manager addon - Jobs Geolocation

Here is the problem I am having.  With this plugin, you are able to have sticky/featured jobs, which will stick jobs to the top of the search.  What is not working is, you are supposed to be able to choose the order. For myself, I want Featured, Distance.

This, unfortunately, is not working and getting no help, or response from the plugin developer or it’s forum.

What I want, is for 3 jobs to appear at the top of the listings, and then normal jobs after that in distance order. (1 Dry Van, 1 Refrigerated, 1 FlatBed)

The 3 sticky jobs I set the location as USA.
This did not work, as the search goes on a 500m radius, so if I searched for a job in Florida, the sticky job would not appear.
Then I went ahead and created multiple sticky jobs, and put the location as a state,  so Nebraska. ( This works if I search by state, but if I type in a zip code, or a city, I get multiple state sticky jobs).

Example.  Goto to the search box - https://cretecarrier.com/

Type in 68516  (this is my local zip code in Lincoln, NE). Select Company, and OTR, then Dry Van.

You will see 3 sticky jobs appear, then the results closest to my zip code.  

This is not what I want, I would only want 1 sticky job at the top.

This …
I want to rebuild a site I built a long time ago in WordPress.

I'm wondering how to create the prices and availability page in WordPress https://www.effinghamministorage.com/prices/

Do I just paste the HTML into the text section of a page editor? And add the JavaScript somewhere (like the theme's footer?)?

Also the availability is stored in a database and updated via an admin page that has HTML number inputs. Can you tie the availability into the WordPress backend?

Wordpress.  Class causing a White screen at login.  I have the following class.  If you are already logged in when I upload the following function, everything works fine and as intended.  However, If you are not logged in to the WP admin and I upload the following Class, when you log in you see an empty white page.  Does anyone have any idea what is wrong with my class that would be causing this?

class theleatherguy_bulk_cancel_inventory_restore {

    function __construct() {
        add_filter('bulk_actions-edit-shop_order', array($this, 'theleatherguy_register_bulk_action')); // edit-shop_order is the screen ID of the orders page
        add_action('admin_action_mark_cancel_order', array($this, 'theleatherguy_bulk_restore_order_stock'), 10, 1); // admin_action_{action name}
        add_action('admin_notices', array($this, 'theleatherguy_bulk_status_notices'));

    public function theleatherguy_register_bulk_action($bulk_actions) {
        $bulk_actions['mark_cancel_order'] = 'Mark Cancel Order'; // <option value="mark_cancel_order">Bulk Cancel Order</option>
        return $bulk_actions;

    public function theleatherguy_bulk_restore_order_stock() {
        // if an array with order IDs is not presented, exit the function
        if (!isset($_REQUEST['post']) && !is_array($_REQUEST['post']))

        foreach ($_REQUEST['post'] as $order_id) {
            $order = new WC_Order($order_id);
            $order_note = 'This order was 

Open in new window

Wordpress Get Taxonomy names and slugs
I'm trying to get all of the terms for a specific taxonomy and have followed the dirrections but I end up with an empty select dropdown: It does show the default placeholder in the Select though.

function tlg_variation_warehouse_fields( $loop, $variation_data, $variation ) {
	// Select
        global $wpdb;
      $taxonomy = 'pa_variable-warehouse';
      // Get the selected value  <== <== (updated)
    $value = get_post_meta( $post->ID, '_select', true );
    if( empty( $value ) ) $value = '';
 $get_terms = get_terms($taxonomy, array (
          'hide_empty' => false,
'orderby' => 'term_id',
            'order' => 'ASC'

  $options[''] = __( 'Select a Location', 'woocommerce'); // default value
	    echo '<div class="options_group">';

    woocommerce_wp_select( array(
        'id'      => '_select',
        'label'   => __( 'Warehose Location', 'woocommerce' ),
        'options' =>  $options, //this is where I am having trouble
        'value'   => $value,
    ) );

    echo '</div>';

Open in new window


I am trying to query Wordpress users by 4 different custom field types, combine the 4 results with an array merge, and sort them by last_name. So far what happens is that everything comes out of my array by the order the array went into the merge, then first name

$full_query = new WP_User_Query( array( 'meta_key' => 'member_level', 'meta_value' => 'full' ) );
	$loa_query = new WP_User_Query( array( 'meta_key' => 'member_level', 'meta_value' => 'loa' ) );
	$cert_query = new WP_User_Query( array( 'meta_key' => 'member_level', 'meta_value' => 'cert' ) );
	$senior_associate_query = new WP_User_Query( array( 'meta_key' => 'member_level', 'meta_value' => 'senior_associate' ) );
	 $full = $full_query->get_results();
	 $loa = $loa_query->get_results();
	 $cert = $cert_query->get_results();
	 $senior_associate = $senior_associate_query->get_results();
	 $final_users = array_merge($full, $loa, $cert, $senior_associate);
	foreach ( $final_users as $my_users ) {

 echo $my_users->first_name; 
 echo $my_users->last_name;
 echo $my_users->member_level;


Open in new window

so my results come out as so...

first_name          last_name           member_level

Zornitza            Petrova                  full            
Zhenguo             Sun                     full            
Andrew             Anderson               loa            
Alan             Cameron                     loa
Yasmine             Abdel-Hay            cert            
Yvonne             Yeung                    cert            
Andrew J             Lakatos               senior_associate            
Antonia P             Kastanis                senior_associate      

I would like to sort my array_merge by last_name
Why WordPress For Blogging ?
Hi Experts,

Tomorrow I need to transfer a new WordPress site from my localhost to live, and I wanted to get some feedback on the easiest way to this, including design, content and settings?

In my mind I need to

1- Install WP Live
2 - From local export the db as .sql
3 - Within .sql search and replace http://localhost with http://www.domain.com, then replace the db on live site.
4 - FTP my parent and child theme
5 - FTP my content directory
6 - Install any plugins

Am I missing anything?

Thank you,

I am trying to echo the results of a Wordpress query in a loop. My query seems to be working because if I do a var_dump I get pages and page of results, but I can't seem to echo the first name

$user_query = new WP_User_Query( array( 'meta_key' => 'member_level', 'meta_value' => 'full' ) );

foreach ( $user_query as $my_users ) {
echo $my_users->first_name;

Open in new window



WordPress is a free and open-source content management system (CMS) based on PHP and MySQL for creating websites and blogs. Features include a plugin architecture, a template system and strong management, customization and search systems; through its dynamic presentation of content, webmasters have the flexibility to create websites easily.