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

I am trying to use onclick="document.location in functions.php but the url is missing the slashes on the frontend. It's probably something simple but I can't get it to work.

echo '<div class="box center" style="background-image: url(' .$bgImage['url']. ');background-position: 50% 0%; background-repeat:no-repeat;" onclick="document.location="'.$url.'""><img src="' . $profilePic['url'] .'" width="104" class="photo">';

Open in new window

0
Originally I thought this would be a Wordpress question but now I want to approach this from a different perspective.

I am running a LAMP Stack in AWS using Amazon Linux. I have a company website that is a Wordpress site.

I have six domains that I want to (1) force from HTTP to HTTPS and (2) forward to "https://CompanysSite.com".

The other domains are variants, so, for example I want "http://CompanySite-inc.com" to forward to "https://CompanySite.com". And it's totally okay to have the domain name be changed to "https://CompanysSite.com" from whatever domain it came in on.

Is there a way to do this globally at the Apache level, perhaps using Mod-ReWrite? I just don't know enough about Apache to add that to the script in order to have all traffic sent to "https://CompanySite.com".

Thanks for your help!
0
Installing WordPress and configuring Maria on AWS.Ubuntu

On AWS, I have an instance running:
NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"

and have successfully run:
add-apt-repository

with the following:
ppa:mamarley/updates
ppa:ondrej/apache2
ppa:ondrej/php
ppa:ondrej/nginx-mainline
ppa:isc/bind-dev

and finished with Maria:
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --skip-maxscale


Now, I need to install WordPress and configure access to the database.

How do I do this?

Thanks
0
Dear Experts,

I have inherited a virtual server running Devian Linux 7 and with Webmin v. 1.630.  It is used as an on-prem Wordpress server.
Today, the website which this server hosts broke, and even though I can log into PHP Myadmin page and see all of the database, I am not able to log into /wp-admin page.
I think Wordpress environment is broken.  We can spin up another VM and set it up exactly the same and hope to transfer the database from the exports I made.
My issue is, I have never done this myself, what is the correct way to set up a local Wordpress server and migrate the database from another site?
Please advise.
0
I have a Company website that I want to have similar URL's resolve to. The Company website is a Wordpress site and the typical method (e.g. a CNAME in DNS) isn't working.

How can I get my Company Wordpress Site (e.g. https://Company.com) allow other sites to resolve to it (e.g. https://Company-Varient1.com, https://Company-Varient2.com)?

Is there a plugin for this or can I use the HTAccess file? I don't know very much about Wordpress, so I'm limited to what I can read about online.

Thanks for your help.
0
Need to install LAMP on AWS.EC2.Ubuntu.t2.micro

I can now successfully SSH into my Ubuntu server and find my folder,

/home/ubuntu

is totally empty.

I consider this a good thing.

True?

I need to install LAMP and then WordPress. (I want MySQL since I have no experience with Maria.)

Please explain the sequence of installations and the commands I need to issue.  Also, if I need to download a file, please provide me the URL.

I already have PHPMyAdmin on my MacBook, but let's worry later about reconfiguring my Mac. Instead, please tell me how to verify each element was installed properly.

Then, once we are all convinced my little AWS Ubuntu host is hosting WordPress, the fun begins and the question on EE will start flying.

Thanks
0
Which AWS FREE Tier is most advisable (for WordPress)?

I will not choose either of the Windows Server options due to exposure to viruses.

There are 4 LINUX options:

Amazon Linux
Red Hat
SUSE Linux
Ubuntu

(Is Ubuntu an instance of LINUX?)

But I m a .NET developer and may be interested in the following option:
NET Core 2.1 with Amazon Linux 2 - Version 1.0 - ami-0bed74d89326c46bc
.NET Core 2.1 and the PowerShell 6.0 pre-installed to run your .NET Core applications on Amazon Linux 2 with Long Term Support (LTS).

Which platform is safest against hacking and viruses?

Thanks
0
Our company's website is very outdated...  it was designed in 2007 when the importance of a responsive design was not as prevalent.  However, I did load it with SEO and surprisingly it still generates leads for us.  Because our business is not IT related, I do not want to take the time to rebuild the site myself with a custom responsive design.  My thought was to move to WordPress as long as I have complete control over the SEO.  From my research, my thought was to use WPSEO WP theme with Yoast.  My question is does anyone have experience with this combination and does it give you the full control (titling links, etc.) that I want.
0
We have inherited a wordpress site that does not have ssl, so login credentials are sent plain text (the site doesnt collect any other personal data). Are there any recommendations on who to use and any other dos and donts regarding selecting a certificate and approx costs. Are the costs 'one off' or annual?
0
I have a wordpress site hosted on ngnix.  

We have a need to store  4 jpg images in the site so our sharepoint online page can pull these images into an email.  Ultimately we wanted  a storage place that outlook could get this and build this prescripted email.

The issue though is we some concerned that if someone got the url they could access this.

Is there a way to prevent this folder from being accessed by the outside world, crawled etc...or prevent if someone in theory could get this url?
0
I need a sanity check as I'm not an expert at Wordpress. I am running a Wordpress site using a traditional LAMP stack in Amazon Web Services.

When I attempt to hit the HTTPS version of the site I get the error "Error Establishing Database Connection".

When I hit the site using HTTP it resolves fine.

What is going on here? How can I fix this so that HTTPS doesn't show this error?

Thanks!
0
Hello,

I have some code that was for updating a Wordpress uses profile page. It worked fine on my old server, but now I have a new site with php 7.2 and users cannot change their email address. This code worked for many years on php 5 and old server.

elseif(email_exists(esc_attr( $_POST['email'] )) != $current_user->id )
            $error[] = __('This email is already used by another user.  try a different one.', 'profile');

whenever user try to change their email, they get the error

How do I fix this?
0
G'day guys,

Need some help understanding why Firefox is showing up a clients website differently then Chrome/IE/Edge. Plus how I can fix it.
Website is - https://develop.adventure4x4.com.au
Section is the yellow jimny (small 4x4) displaying over top the wording.

Just in case people are going to use the standard replies this is what I've done already:
- Used incognito (or private browsing in the Firefox)
- Cleared cache
- Tried different device
- Tried multiple of other web browsers
- Search google (but hey without knowing why it is happening I don't know what to search for)

Cheers,
Steve
0
There seems to be some sort of mysterious redirection going on when i try to access the site at
http://fostamells.technojeeves.com/

A static file, such as http://fostamells.technojeeves.com/license.txt comes out fine but the attempt to access the homepage seems to land on a page of the company that hosts technojeeves.com. I really can't see why. Is it Wordpress doing this or what (after all it does say X-Redirect-By: WordPress)? I've attached a wget debug log of the attempt to get the homepage
wp.log
0
I need to transition to OHV for WordPress

I expect to have some controversial topics on my podcast and hope to use OHV, a provisioning company, instead of a hosting company. But I am not ready to invest $70/month to do this.

https://www.ovh.com/world/

Right now, I am pulling things together using MAMP, but have no plans to purchase the Pro version when it expires. Instead, I hope to host it at a less expensive place when I launch it and get a a solid backup with something like BlogVault, Duplicator or BackupBuddy. I want to move to OHV when I feel the investment pays off.

And, if I get cut off by a hosting provider due to my content, the investment would be worth it immediately.

So, please suggest an inexpensive provider I can start with which has good reliability. I expect to pull thing together on MAMP.

When I buy a plug-in to test on MAMP, is it easy to use it at a hosting provider? I assume there is no licensing issue that would me to purchase a second copy, right?

Thanks.
0
Need help choosing a WP Podcast theme for PowerPress

I am unsure what particular details should govern my decision.

https://tinyurl.com/Themes-best-suited-for-PowerPr

I think any special requirements will be covered by PowerPress. So, as far as the theme, I just need a simple way to show a snippet of text and potentially a unique photo, for each episode.

I need a header image where I can have a 60 second audio where I SELL the podcast.

As far as audio players, and outreach to listeners, PowerPress covers that.

So, can you suggest a Theme that works well with PowerPress?

Thanks
0
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?

Thanks.
0
MAMP Expires in one week?

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

Expiration
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?

Thanks
0
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.
0
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.

Thanks,

Richard
0
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.

<?php
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';
    if 

Open in new window

0
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?
0
[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.
[/quote]

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?
0
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.

TIA -
0
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,
Jack
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.