[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

WordPress

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

Are there any wordpress hosts that do not get viruses

Or can I do a daily backup and manually scan all the files and if I notice
asdfasdfsdafsdfsdfsdfsdafsdf.php (or another file with a weird name) file appear in one of the folders in my wordpress folders then use a backup
0
I'm looking for a sql query to pull any woocommerce products or wordpress pages edited by a certain Wordpress user.  Ideally I'd get the post and the post revision along with the user that I'm targeting.

I did some Google'ing but couldn't find what I was looking for.  Any ideas?

Thanks!
0
I've exported an excel spreadsheet to html and uploaded the file to my wordpress site however when I open the url the spreadsheet is not centered on the page. it is set to the far left. How do I center the pages. I'd also like to have the links on the bottom to the other sheets be at the top instead of the bottom but that's not a deal breaker.
0
Had a html .index file that I erased to blank and uploaded to my Wordpress domain, jsccorps.com. Idea was to use this as my Wordpress startup front page when someone brings up the site. However, the Theme, colors, etc, don’t show up on jsccorps.com. If I create a home page, then the Theme, etc. appears on jsccorps.com/home Why is jsccorps.com blank and I can’t add theme, logo, etc from Wordpress dashboard?
0
I want to query a database and include the output in a table on a Wordpress page. I have the PHP code that queries the database, and it works correctly, but I can't figure out how to output that onto my Wordpress page.

I've looked into several widgets, like InsertPHP, but I can't figure out exactly how they work.
0
We have a few odd formed urls that we're trying to redirect. They all look like this but with different 5 letters after the .html, this is how I tried making the redirects work:

redirect 301 /woodinville-carpet-cleaning.html/UPfMZ/ https://andersoncarpetcleaninginc.com/professional-home-carpet-cleaning-services-woodinville/

They won't redirect though. All the normal urls in the htaccess redirect just fine, so I know there isn't an issue in the file itself. Anyone have a solution to make them redirect as we expect?

Thanks for any help.
0
I need to fix the orange button in the right column that appears outside of the blue box. It should be on the inside of the blue box. Here is the page: https://ccdenver.org/givethanks/

Any ideas experts?
0
I have a Wordpress / WooCommerce query to sort All Products by published date.  For some reason my query won't work.  It just returns everything.  I think it is because the Query is not looking for 'product' in the wp_posts table?  Or is it because the $wp_query only searches in postmeta table?

public static function woo_product_filter_order_query( $wp_query ) {
		global $pagenow;
		if (
			is_admin()
			&& $wp_query->is_main_query()
			&& isset($_GET['post_type']) && sanitize_text_field($_GET['post_type']) =='product' 
			&& ! empty( $_GET['date_from'] )
			&& ! empty( $_GET['date_to'] )
		) {
			$from = explode( '/', sanitize_text_field( $_GET['date_from'] ) );
			$to   = explode( '/', sanitize_text_field( $_GET['date_to'] ) );

			$from = array_map( 'intval', $from );
			$to   = array_map( 'intval', $to );

			if (
				3 === count( $to )
				&& 3 === count( $from )
			) {
				list( $year_from, $month_from, $day_from ) = $from;
				list( $year_to, $month_to, $day_to )       = $to;
			} else {
				return $wp_query;
			}
			$wp_query->set(
				'date_query',
				array(
					'after' => array(
						'year'  => $year_from,
						'month' => $month_from,
						'day'   => $day_from,
					),
					'before' => array(
						'year'  => $year_to,
						'month' => $month_to,
						'day'   => $day_to,
					),
					'inclusive' => apply_filters( 'woo_product_filterby_date_range_query_is_inclusive', true ),
					'column'    => apply_filters( 'woo_product_filterby_date_query_column', 

Open in new window

0
Using CSS, how can I hide the links that say Create an Account  or  Log In and when logged in it says My Account • Log Out

The webpage is here: https://ccdenver.org/givethanks/

Any ideas experts?
0
Wordpress / Yoast.  i have a lot of Draft Pages in my wordpress CMS.  Yoast will not put them in the sitemap if I mark them to be excluded, but there are too many to go through.  They are all in one category.  I want Yoast to not place a specific category (or taxonomy, which ever is easier) in my XML sitemap.  The reason is, Google will index Draft and private pages and I don't want that because they will come up 404.

How do I exclude a category from the XML sitemap in Wordpress

I found this but I dont think it is what I want

/* Noindex all posts in a category */
add_filter("wpseo_robots", function($robots) {
  if (is_single() && in_category(array(100))) {
    return "noindex,follow";
  }
  return $robots;
});

Open in new window

0
Need assistance or guidance on the beast way to convert our Printed Catalog onto our website into Woocommerce.  Our Catalog product data (Title, Part#, Description, and 4 columns of pricing) are in excel and need to import into Woocommerce using WP All Import Pro plugin (or another way), but I am not sure how to format the excel files appropriately and also having issues figuring out how to to import 4 columns of pricing since woocommerce only allows one "Regular Price".  All excel files are formatted the same.  Attached is our printed Catalog PDF.  I need to import all this data into Woocommerce but for now I am happy with only importing the Excel data, I have 150+ Excel Files which all are formatted like this:  

I also attached a sample Excel File "Amtrol RO Tanks"
Catalog Excel File
Here is the staging website http://goodwaterwarehouse.com/gww_new/catalog/

Our Catalog has 12 Product Categories and within each of those are more separate Categories. Just look at the Table of Contents in the attached PDF.
GWW-Catalog-2018-USA-low.pdf
Amtrol-RO-Tanks.xls
0
Hi, I'm having a problem with one of my WordPress Functions.

I have a function, which when somebody comes to our website, with a utm_source, it stores it in a cookie. If I then click on an apply button, it will then append that utm_source value to the application link.

I've got some apply now buttons in my pages (the_content) and some outside, such as in my header.   So testing, I goto this link, with a utm code attached.

http://c643d67b.ngrok.io/?utm_source=testing

If I hover over or click [DRIVERS APPLY] nothing is appended. But, if you scroll down the page, you will see 2 other buttons just above the footer. These are in my page content, and if you hover over, or click, it will append the utm_source value to the url.  So it works in the_content, or if i have it in a widget_text.

If it's not in a widget, or in the content, how could i target it, if it's anywhere other than in the_content

This is the code i'm using. -

/*------------------------------------*\
   Add Cookies
/*------------------------------------*/

function set_ad_cookies() {
	
  $vars = array('utm_source', 'utm_campaign', 'utm_media');
  foreach ($vars as $k) {
      if (isset($_GET[$k]) && !isset($_COOKIE['orig_'.$k])) {
          setcookie('orig_'.$k, $_GET[$k], 0, '/', $domains['cookie_domain']);
      }
  }
  
    if (!isset($_COOKIE['orig_utmsource'])) {
	  setcookie('orig_utmsource', $_GET['utm_source'], 0, '/', 

Open in new window

0
I've set our web.config file on a WP site we've built to have secure cookies but all tests we've run online suggest cookies are still not secure. The httpOnly setting also hasn't taken effect.

The code snippet from the web.config is below and always the PHPSESSID cookie doesn't have these settings

<system.web>
    <httpCookies httpOnlyCookies="true" requireSSL="true"  />
</system.web>

Open in new window


What else do we need to look at to ensure this setting takes effect?

Thanks
Iain
0
Hello. I updated my wordPress site from 4.6.1 to 4.9.8.  I did it manually meaning I downloaded the zip file and replaced my wp-includes and wp-admin folders with the new ones.  Then I just copied the wp-content folder to mine.  I did this after deactivating all the plugins. Once did this I went to the wp-admin url and the log in no longer takes my password.  What do I do?
0
Hi Experts
On my Live site I am trying to add some new Fields to my pages Like Image text etc
but when added these Fields  in WordPress Pages it not appear on the Live site or Preview Changes however they appear in Wordpress Page  Editor
0
WordPress / WooCommerce Database is huge.  I'm helping with a store that over the years the database tables have become huge.  Literally millions of table entries.  Is there any way to get rid of data that is no longer needed in the postmeta table?  Is there old information that no longer needs to be stored?

I was told I can use the following in MyPHPadmin:
SELECT * FROM wp_postmeta pm LEFT JOIN wp_posts wp ON wp.ID = pm.post_id WHERE wp.ID IS NULL;
DELETE pm FROM wp_postmeta pm LEFT JOIN wp_posts wp ON wp.ID = pm.post_id WHERE wp.ID IS NULL;

Open in new window


But if I do that, will I loos anything from my WooCommerce Store?
0
I am concerned when I look at the breadcrumb of categories it is showing /Home/Home/ instead of /Home/.  How do I get it to look at the first /Home/?

Here is a screenshot
https://gyazo.com/f30cf57bbcfa407ee85476097f72631d

From the url above it is showing /Home/ only once.
1
Hello.

Basically, for some reason, the slider is separated from the navigation bar and I can't find where I can fix this.

https://bit.ly/2QJxCBR
0
Hi

Updated my Wordpress Theme today and I've always has this problem, so I though I'd ask to see If I can fix it at the same time.

My theme (Nexus by Elegant Themes) has an option to have a featured picture Post, which is great - Im very happy with it, but I'd like the feature post picture to be the same size as the page container, currently it stretches across the whole page like this..

Currently
Id like it to look like (thanks to Photoshop)

Like so
Im usually pretty good at finding these sorts of things but I cant find where thats being done?

Anyone?
Ref URL https://www.petenetlive.com/KB/Article/0001469
0
Hi everybody.
I have a Wordpress website hosted in 1and1. Trying to display a live streaming using FV Player, if I enable HLS.js (as suggested) to ensure the video be displayed in modern browsers and in mobile, the video is not displayed and the message in the console is "CORS header ‘Access-Control-Allow-Origin’ missing".

I tried to set Access-Control-Allow-Origin both in the htaccess:
<FilesMatch "\.(php)$">
  <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
  </IfModule>

Open in new window

and in the file header.php adding these lines:
    header("Access-Control-Allow-Origin: *");
    header("Access-Control-Allow-Methods: PUT, GET, POST");
    header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");

Open in new window

I tryed these solutions one by one and both together but with no success. In the console I always see the same message.

Any idea?
0
Hi, I am running techgardens.com/optical-engineering.

My client is creating pages at techgardens.com/optical-engineering/ciena, techgardens.com/optical-engineering/Infinera, techgardens.com/optical-engineering/Coriant, techgardens.com/optical-engineering/BTI, techgardens.com/optical-engineering/JDSU.

She would like, when someone clicks on a link for one of those pages, that they see the page, but the url reads  techgardens.com/optical-engineering/.

I think I can do this with htaccess, but need some help. The WP htaccess already has this:

# BEGIN WordPress
AddHandler application/x-httpd-php70 .php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /optical-engineering/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /optical-engineering/index.php [L]
</IfModule>

Can I alter that to read:

# BEGIN WordPress
AddHandler application/x-httpd-php70 .php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /optical-engineering/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /optical-engineering/index.php [L]
RewriteRule ^ciena/?$ /
RewriteRule ^Infinera/?$ /
RewriteRule ^Coriant/?$ /
RewriteRule ^BTI/?$ /
RewriteRule ^JDSU/?$ /
</IfModule>

And will that give me the result we want? Thanks!
0
Wordpress - Themes and Child themes

OK Ive got a Wordpress site that has a theme, and at some time in the past Ive created a child theme and made some changes, all good
BUT, before I knew what I was doing, I made some direct edits on files in the parent theme.

Now I've compared the live sites theme with the original factory default, and the files that have changed are....

footer.php
functions.php
header.php
style.css

So, my question is, If I coped those file to the Themename-Child directory, I should be able to update the theme without anything smashing correct?

The problem is compounded, as in the child theme I also have a functions.php and a header.php file?

From what I've read it's probably using the header.php from the child theme anyway?
But Ive also read that functions.php loads the child and the parent, so Im not sure what to do about that one?

Regards,

Pete
0
Hi, I am working with wordpress with the divi theme. I wanted the header to be a certain height, and the text to be centered vertically. I went with this CSS:
/*-----------------------------------------------*/ 
/*-----Header & Slider Alignment by Divi Soup----*/ 
/*-----------------------------------------------*/
/*Fullwidth Header*/
.ds-fw-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end ;
    -ms-flex-align: end;
    align-items: center/* flex-start | center */;
    padding: 0;
    min-height: 60vh; /*Adjust for header height*/
    height: 60vh; /*Adjust for header height*/
}
.ds-fw-header .et_pb_fullwidth_header_container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}
.ds-fw-header .header-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2% !important;
    margin: 0;
}

/*-----------------------------------------------*/ 
/*-----END Header & Slider Alignment by Divi Soup----*/ 
/*-----------------------------------------------*/

Open in new window


And it worked perfectly.  But then I upgraded to the latest Divi, and of course now it's broken. Can anyone help me make the header 60vh again? Site is https://techgardens.com/optical-engineering/

Thanks.
0
Does anyone know of a wordpress plugin that works like this? http://donateri.org  - the client wants something like that, and also: Ideally it would integrate with mailchimp and can be set up to send a reminder of the pickup the day before.

If there is no such thing, where could we go to have it developed?
0
I am getting an error after uploading a Theme to Wordpress hosted on AWS.  Has anyone seen this before and know how to fix it?

Can't connect to AWS! Check your credentials and make sure your AWS accout is active!

I know account is spelled wrong.  That is how it is spelled in the error.
0

WordPress

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.