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

Do I choose a Theme for PowerPress? Or WordPress?

This is the first WP site I will create myself and have install PowerPress, since I intend to make this a podcast.

So, is the concept of a Theme totally independent of the fact I'll be using PowerPress? Or, are there Themes which are best suited for PowerPress?

MAMP Expires in one week?

I got a message that the full-working demo will expire...

What does that mean?

I really do not want to pay $69 for an installation I made as a simple test-bed for WordPress and PowerPress. I plan to host the podcast in a few weeks.

What will I not be able to do once this demo has expired?

Can I simply register?

WordPress.  Is there a way to "Lazy Load" Plugins in WordPress without using another plugin?  I have one plugin that takes up a lot of resources and am interested in defering it.
This regards WordPress plugin Contact Form 7.

I have this code in a form:

<p style="padding-top:1em">Estimate Type  <span class="asterik">*</span><br />
[select* EstimateType include_blank "Drainage Installation|rain1g4@rkassoc.org" "Drainage Repairs|rain1g4@rkassoc.org" "Installation - Residential Sprinkler System|rain1g1@rkassoc.org" "Installation - Commercial Sprinkler System|rain1g2@rkassoc.org" "Service - Residential Sprinkler System|customerservice@rain1.com" "Service - Commercial Sprinkler System|customerservice@rain1.com"  "Sump Pumps & Backups|dave@rain1.com"]</p>

Open in new window

The question is, can I include more than one email address for a specific selection by using multiple "|" after the list item?

In this example, some of these are group emails on a server & some are individual emails.


WordPress WooCommerce Login Redirect.

I am trying to redirect my login based upon the page a customer logs in on. There is certain content that a customer needs to log in to see.  So if they land on
https://MYSITE.com/protected-content the are forwarded to
https://MYSITE.com/protected-login  so that they must login to see the content
There is a conditional that says if they are on this page (https://MYSITE.com/protected-login), the login redirect should be to
https://MYSITE.com/protected-content, basically takes them back to the original page.  The reason for this is there are a bunch of different protected content areas that a variety of user elements must be met.

The function mogobox_kiwanis_inspect_page_id() works but it does not load my filter.  And if it does load my filter, it does not work.

I should note that the following 2 functions are in a Custom Plugin and not in functions.php. Also, there are no errors being reported.

function mogobox_kiwanis_login_redirect($redirect) {
         $redirect_page_id = url_to_postid( $redirect );
    $checkout_page_id = wc_get_page_id( 'checkout' );
    if( $redirect_page_id == $checkout_page_id ) {
        return $redirect;
    return wc_get_page_permalink( 'protected-content' );

add_action( 'wp', 'mogobox_kiwanis_inspect_page_id', 1500,2 );
function mogobox_kiwanis_inspect_page_id() {

    $page_id = get_queried_object_id();
    $page_id = "$page_id";
    $kiwanis = '78430';

Open in new window

I have edited a plugin file and made just 2 line changes. However, as soon as I update the plugin that will be undone. How can I edit a plugin and prevent the changes being overwritten upon update?
[quote] * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.

Open in new window

(From wp-config.php)
And here are some i just generated:
define('AUTH_KEY',         'Xl2wc+1 +axlJFo$4| {#6NPQ>P~bqeeDGYeo7y2rE8Vy=|>FqlC!?;QB6e$IJok');
define('SECURE_AUTH_KEY',  ':opi?(?dvLL+;K-(/8d$2-JeIW61o_Mv,EDU$Q0&!oO ~b@zcQjTNYNhlmg9;G_+');
define('LOGGED_IN_KEY',    '?T$(hta| y-9}41Fvo719_GB0aQ5:Uo:Lm6AQ1erU|jSy7PLKYvn|PL.io>qC9HV');
define('NONCE_KEY',        'Vgo^HPxx?M2nhyhR?$cT{R_X!+a|R>eKaI{RIHgAjiMxQ~C};O&).A~I^4L{+qQ3');
define('AUTH_SALT',        'Uypz?l$XrMw*.-A j$1r>)FH0+7}|RKQ=8rHox21UBHtM-7&W[Buot@ghH@OAeTK');
define('SECURE_AUTH_SALT', 'V~jK%J;^lf-o2XH-YN+%$Rs qk(D@x<#.E=r-ur)jLD hSl9Gqy3r#,`aSbL|k>g');
define('LOGGED_IN_SALT',   '~D[Hb|JqDJoQH8p]H.;W+?b#~BX`U!O!eZ_Ep33::zJpoZjIyU5Mb69u/8$ZG)^|');
define('NONCE_SALT',       'vJu/}MN.L* ntJ--sdpeZ||A7[f)<h@e7a*Y5L>8801$c5H%%{+M~MIO*}n5~yw+');

Open in new window

My first question: is any of these salts used in the hashing of the user's login password?
Need a cost effective alternative to SiteGround Grow Big account.  

Most of the time they seem like a good solution, but then something happens usually around DNS updates and they just fall apart.  My latest headache with them involves moving an SNPP (Port 444) connection into AWS with the host name in Route 53 and the connection in the Dynamic Load Balancer.   Well that apps, been done all day.  They don't allow you to DIG, PING or NSLOOKUP from the SSH CLI, and they always seem to feel that they should own the DNS registration.  

This is the third time this year already I have had similar issues and I need to look again.  Might move to AWS, but the nature of the sites seem to imply a variance in cost month to month and possibility of a HUGE surprise one month.  

Mostly a mix of PHP, Static HTML and WORDPRESS (Gravity and Genesis Enterprise) ..

I am out Tuesday, so will apologize in advance for any slow responses.

HI there,

We run training courses and we like to make PDF copies of the PowerPoint slides available to delegates on our website.

Presently I use Wordpress for the site and make use of WooCommerce Memberships to control page access via delegates website accounts to see protected non public pages (these pages have direct links to the PDFs in them).

The problem that we have encountered is that Google can index the folder [apps/wordpress/htdocs/wp-content/course_content/course_X] and give anyone who searches with the right terms access to the PDF in the folder.

Is there a way I can restrict this folder so that only those clicking on the links in the protected webpage can be used to find the PDFs?

Many thanks,
I want to use ux blocks to create content on certain pages of my site.  How do you call within a php function a specific block and how do you specify a certain page that it be displayed on?  I am familiar with filters and hooks.  I just don't know the proper way to call a UX Block or how to specify it show on certain pages only.

I am using Woo Commerce 3.6.4 and Flatsome 3.0
This is a follow-on question to

Open in new window

Here is my code
add_shortcode( 'cs_product_image', 'cs_product_image_callback');
function cs_product_image_callback($atts = []) {
    $atts = shortcode_atts( array(
        'id' => null,
    ), $atts, 'cs_product_image' );

    $product = new WC_product( $atts['id'] );
    $product_img = wp_get_attachment_image( $product->get_image_id(), 'woocommerce_gallery_thumbnail' );
    return $product_img;

Open in new window

For some reason, this is causing a fatal error.  Here are the log details:

2019-05-29T14:18:45+00:00 CRITICAL Uncaught Exception: Invalid product. in /data/web/theherbsplace.com/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:163
Stack trace:
#0 /data/web/theherbsplace.com/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Product_Data_Store_CPT->read(Object(WC_Product))
#1 /data/web/theherbsplace.com/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(135): WC_Data_Store->read(Object(WC_Product))
#2 /data/web/theherbsplace.com/wp-content/themes/flatsome-child/functions.php(411): WC_Product->__construct('1440')
#3 /data/web/theherbsplace.com/wp-includes/shortcodes.php(325): cs_product_image_callback(Array, '', 'cs_product_imag...')
#4 [internal function]: do_shortcode_tag(Array)
#5 /data/web/theherbsplace.com/wp-includes/shortcodes.php(199): preg_replace_callback('/\\[(\\[?)(cs_pro...', 'do_shortcode_ta...', '[cs_product_ima...')
#6 /data/web/theherbsplace.com/wp-content/plugins/wordpress-seo/admin/ajax/class-shortcode-filter.php(35): in /data/web/theherbsplace.com/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php on line 163

Open in new window

I don't understand how to fix the problem so please help.

image sizing and drop shadow is going a little odd here. This has a good drop shadow but the image is fuzzy as it's being scaled up.

This one has the exact opposite

I want to get the best of both worlds but don't know what's going on

NB this site is a temporary WP installation made static
Need Podcast options vs. WordPress...

I was considering making a WordPress site and getting a podcast plug-in so that I would have some advanced features.

I have plans to create MP3's, but found many platforms for the simple stuff, like that.

In addition, I would like:

- URL's and/or images associated with each episode
- I need outreach to be pretty easy, so I can communicate with people who follow my podcast
- I have seen other podcasts that once you enroll, the podcast notifies you for various outbound marketing events, like a new episode.

What is the name of this type of browser configuration? Once, I had been notified much too often, and un-enrolled. I did this from the browser, I think it was on the Advanced page.

So, please refresh my memory on that, and tell me what podcast solutions provide this.

OR, do I need to make my own WordPress site and get several plug-ins for all this?

Backing up a WordPress site to Bitbucket

I have a brand new WP site at A2 Hosting and hope to back up the site in its pristine condition, as my first code commit. That lets me easily see what changes I have made, and help me in the I changed something I should not have changed.

What parts of a WP site get backed up?

What parts of a WP site DO NOT get backed up?

How do you suggest I approach this...A2 Hosting > BitBucket?

http://mantex.technojeeves.com/index.html@p=49591.html is the page in question. This site, temporary, has been produced by spidering a WP site, so we've effectively got a WooCommerce page made into static html. I'm mystified as to why the product image is not showing. Can you help?
Wordpress Gutenberg editor has an Image-Gallery editor based on Javascript that manages uploads, inserts, and how the gallery is provided. Does anybody know if there is something similar we could use for our own CMS?gallery.pdf

Thanks a lot.
Hi Experts,

My question is for my own website www.aces-project.com in particular the featured images.

I am using WP Appointment theme, and the original height of the featured image was around 550px, which was too big. I reduced it, but now some of the images are dis-proportioned. How can I find a happy middle for all screen sizes and devices? Also noting that on my Home slider, I have written span.

I have inspected other websites and see that they use the Featured Image as div background, opposed to  using the img tag.  I could overwrite the header.php in my child theme, but how do I make sure that the background shows the center of the image? Do all images need to be a certain or equal width/height? Is there any other considerations that I need to be aware of?

Any advise would be appreciated.

I have a Wordpress menu, it is a 3 level menu and the third level isn't working properly.

If you visit this link.

Under the profession menu you will see What is Landscape Architecture, the next 3 menu items  ( Why is Landscape Architecture Important?, and  Studying Landscape Architecture only appear when  What Does a Landscape Architect Do) are supposed to only appear when you hover over What is Landscape Architecture?, but they display as default...  

Interesting thing, if I go and scroll over that item and and then scroll off, those 3 menu items close and everything works as it should.

So my question is
1. How do i make What Does a Landscape Architect Do?, Why is Landscape Architecture Important?, and  Studying Landscape Architecture only appear when  What Does a Landscape Architect Do is hovered over?
Hi, Search Console is showing:

Hacked: Content injection
These pages appear to be modified by a hacker in order to spam search results. Learn more
Sample URLs
May 20, 2019

First thing I'll do is make it SSL, I've been putting that off.

But Google says, use Fetch as Google, then they don't have that tool anymore. Typical.

They also show: Use cURL or Wget to fetch a page, but those look complicated. Does anyone here have those, and could maybe give me a tip about where the content is? I honestyl think that we have a link to somewhere that Google sees as a hack, but I don't think we were hacked.

I think my .io game might benefit from the main landing page being a blog / sign-in
before playing, so my gamers need an account to participate in contests that I'm anticipating.
Players will be able to practice, no matter what.
Will I be able to plug a Wordpress account / logins/ features into my game?
The account will be needed for participant info. I can also pop in ads on the blog aspect.

Would Wordpress be okay for this?


I feel with every update my word press page gets moved out of alignment.   All of the sudden on my mobile everything is pushed to the right, but it looks perfect on a PC. Can someone please assist?  See attached for what the page looks like on a mobile phone. Home page looks good its all my pages with posts that do not. The example is on:
http://wise-eats.com/podcastclips/website example
I am outputting all custom post type names, parents and children of those parents but I want the children to be nested within the parent in a list item. Currently they are all outputted at the same level in the current taxonomy.

  <?php $custom_terms = get_the_terms( $post->ID, 'product_cats' ); ?>
   <ul id="nav">
      <?php foreach($custom_terms as $custom_term) {
            $args = array(
                'post_type' => 'products',
                'numberposts' => '-1',
                'posts_per_page' => -1,
                'orderby' => 'name',
                'tax_query' => array(
                        'taxonomy' => 'product_cats',
                        'field' => 'slug',
                        'numberposts' => '-1',
                        'posts_per_page' => -1,
                        'orderby' => 'name',
                        'terms' => $custom_term->slug,

         $loop = new WP_Query($args);
         if($loop->have_posts()) {

         $current_id = get_the_ID();
         while($loop->have_posts()) : $loop->the_post(); if($post->ID!=97){ ?>
      <li<?php if($current_id == $post->ID){?> class="current" <?php } ?> >
         <a href="<?php echo get_permalink();?>"><?php echo get_the_title();?></a>
      <?php }  endwhile;



Open in new window

So, the output should look something like:

Item 1
Item 2
      Child 1
      Child 2
Item 3
Item 4
Is mixed content causing 403 Forbidden You don't have permission to access /weekly-rides/ on this server?   Our club recently installed an SSL Cert on their website.  Searching Google for Prairie Cycle Club now shows links that end up as for example:  "Forbidden You don't have permission to access /weekly-rides/ on this server."  When the URL is typed in directly, the page will display.  Other than needing to fix image URL's to avoid mixed content, what else can cause this 403 error?  Potentially the .htaccess needing an edit or rebuild?  This is a wordpress site and I'm not the admin, just a club member with an EE account.  Other clues, seems like maybe a redirect needs to be added to the .htaccess since www.prairiecycleclub.org yields Not Secure whereas https://www.prairiecycleclub.org yields "circle w/i" to indicate mixed content.   They said this started a couple weeks ago.  I noticed the cert date is May 1, 2019.
I have used this code here:


and I want to filter users by certain criteria. The example for the bp-custom page is:

function my_custom_ids( $field_name, $field_value = '' ) {

  if ( empty( $field_name ) )
    return '';

  global $wpdb;

  $field_id = xprofile_get_field_id_from_name( $field_name ); 

  if ( !empty( $field_id ) ) 
    $query = "SELECT user_id FROM " . $wpdb->prefix . "bp_xprofile_data WHERE field_id = " . $field_id;
   return '';

  if ( $field_value != '' ) 
    $query .= " AND value LIKE '%" . $field_value . "%'";
      LIKE is slow. If you're sure the value has not been serialized, you can do this:
      $query .= " AND value = '" . $field_value . "'";

  $custom_ids = $wpdb->get_col( $query );

  if ( !empty( $custom_ids ) ) {
    // convert the array to a csv string
    $custom_ids_str = 'include=' . implode(",", $custom_ids);
    return $custom_ids_str;
   return '';


Open in new window

Example Usage: Get all members who have filled out the xprofile field ‘dogs’ and selected the value ‘poodles’.

<?php if ( bp_has_members( my_custom_ids( 'dogs', 'poodles' ) ) ) : ?>

Open in new window

How do I add more conditions to the dogs/poodles. What If I also want 'birds', 'parrot' as well as 'dogs', 'poodles' ?
Hi there,

I have an issue with my woocommerce mini cart.

The issue I have is that there are a few items that seem to be stuck in the cart no matter if you are logged in or not. If you try and remove them, a few seconds later they appear again.

I thought It might have been outdated plugins and template files, so I have backed up my site and updated everything along with all the template files, still the same issue.

My website is www.ingeniousgifts.co.uk and you can access the slide out mini cart from the top right of the screen.

I have attached a screen record so you can see what happens.

I would really appreciate if someone could help me find out why this is happening and how to fix it?


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.