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 have built an nginx development system on an AWS Linux instance.  I FTP'd all of the files from a working site that is Apache based.  Two strange things have happened that are causing me to not be able to update or delete the plugins.

1.  When I zipped my database on the source system I then FTP'd them to the target system and unzipped them.  When I go into the dashboard I am unable to update nor can I delete them either.
2. Also, the table prefix went from wp_ to wpstg0 could this be affecting the plugins?

I need to get this site up and running so thanks for your help.

Randal
0
hey there,  I have a page where I am using flip box elements on the page.  Using Visual Composer, columns, then flip box inside.
What I cannot seem to figure out is, how to give some bottom padding to the elements.  elements are overlapping the rows below. how can I get it so that, however big /long the text is, it will always push the below elements/rows down so they are not overlapping.

here is the page https://simmplylove.com/our-story/
0
Okay here is my scenario:

I'm using the Memberpress plugin and I need to allow a certain number of custom post types (chapters) to be available for different membership levels. These would be the most recent chapters.

There's:

Tier 1 (2 chapters)
Tier 2 (4 chapters)
Tier 3 (6 chapters)

I've created a taxonomy called Member Type and added the tiers as terms. I will be adding the terms to the most recent 6 Chapters. I need this to happen automatically because I'll be designating that content as paid subscription content depending on the level. I can target content by taxonomy in MemberPress.

I've got some code working that will add all three tiers to any new chapter. But, what I really need it for these terms to be only limited to the most recent 6 chapters in this way:

Most recent 6 chapters have terms: Tier 1, Tier 2, Tier 3
Most recent 4 chapters have terms: Tier 1, Tier 2
Most recent 2 chapters have term: Tier 1

I have NO idea how to make this happen. Well, maybe a teeny bit, because I've been googling for hours! Can anyone set me in the right direction?

Here's the code I have:

add_action( 'save_post_chapter', 'myprefix_set_default_object_terms', 11, 2 );
function myprefix_set_default_object_terms( $post_id, $post ) {
	if ( 'publish' === $post->post_status ) {
		// Change here your custom taxonomy slugs and term slugs
		$defaults = array(
			'member-type' => array( 'tier-1', 'tier-2', 'tier-3' )
		);
		$taxonomies = 

Open in new window

0
Can someone please explain where in the page this background image is coming from? I'm looking in the Chrome dev tools Computed section for various elements that cover that part of the page, and none of them seem to set a background image.

The main image is in a slider. If I remove the slider using the GUI editor for the site, the other image still displays in the editor, but in a way that indicates something might be a bit corrupted somewhere in the WordPress page data. I'm trying to figure out how to clean it up, or at least hide the unwanted image.

Edit: Apologies, the url is laing.jfm.co.nz
laing-bg-Capture.JPG
0
Recently I had a WordPress site for a friend. He never installed it, and someone installed it and uploaded a file that gave them access to my server.

The server wasn't really important, hence me being sort of lax with the security, but it got me thinking about how I could better secure WordPress installations on personal servers.

I was thinking I could either move the uploads directory outside of the web root. Or I could maybe configure Apache or some settings to where PHP files won't run.

I'm not going to post this on Stack Overflow because it's sort of discussion based. So any help would be appreciated.
0
I'm currently building a custom WordPress site for a client using the latest version of the Understrap theme development framework, and am running in to some difficulty with controlling the layout of some additional elements that I'm trying to add to the top header.  

Here's a link to the site: http://dev.movingpicture.com/

The problem - I believe - is that there are flex properties in place that I can't seem to override, when all I want to do is add a row above my navigation menu that has standard "display:block" type behavior. Instead, however, my element is getting inserted in between the logo and the navigation menu.

How should I modify my CSS so that I can insert some additional HTML in the top header and have everything wrap correctly the way I've described?  More specifically, I'd like to add a snippet of text and a search box above the navigation menu and right aligned (see my JPEG mockup for reference).  

JPEG Mockup of what I'm trying to achieve

Thanks,
-- Yvan
0
Need to create a Mac Based Image Library

I have thousands of photos of all sorts, and need to build an automated search where I can add attributes and pull up images which satisfy my search criteria.

These are not modern photo's of people, so face recognition is not relevant. Photos are of buildings, maps, historical details, and a few faces, but even those are not usually photographs and tend to be paintings.  So, no face rec.

Also, these are my own private images and do not warrant a cloud solution. Privacy and being able to protect my datas is more important to me. BUT, I would consider using an Azure solution, IF I also had total access to my images with no Internet connection. (I do want some exposure to Azure, as a .NET Developer)

What tools exist that are configurable for this?

I need to add as many attributes as I would like. I need the search tool to reconfigure to include a new attribute.

I am a .NET Software Engineer, so a bit of coding would not scare me.

I would not be afraid to use a cloud solution IF I could also be able to ensure I have the ability to run it locally on my MacBook. My images are controversial, and could cause the master of the universe to try and cut my account...

What about a WordPress plug-in? I would host WP on my Mac if required for this.

I am trying to find a tool (or tools) I can use that will save me a world of work.

Thanks.
0
I have installed Wordpress Multisite with Multisite configure set to True and Subdomain_Install set to false. I am able to create couple of websites but when I set the site to its own domain name (Domain.com) and try to visit domain.com/wp-admin I get a 404 not found error

When I try to visit the domain.com I get the Testing 123.. apache website instead of the wordpress site.

I would appreciate any help

My Wordpress version is 5.2.2
Server is Centos 7
Running Apache and Phpmyadmin
Database is MariaDB

here's my wp-config.php
<?php
/**
 * The base configuration for WordPress
 *
 * The wp-config.php creation script uses this file during the
 * installation. You don't have to use the web site, you can
 * copy this file to "wp-config.php" and fill in the values.
 *
 * This file contains the following configurations:
 *
 * * MySQL settings
 * * Secret keys
 * * Database table prefix
 * * ABSPATH
 *
 * @link https://codex.wordpress.org/Editing_wp-config.php
 *
 * @package WordPress
 */

/** The name of the database for WordPress */
define( 'DB_NAME', 'wordpressdb' );

/** MySQL database username */
define( 'DB_USER', 'wordpressuser' );

/** MySQL database password */
define( 'DB_PASSWORD', 'Password' );

/** MySQL hostname */
define( 'DB_HOST', 'localhost' );

/** Database Charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8' );

/** The Database Collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );

/**#@+
 * 

Open in new window

0
Hi,

I am using theme twenty nineteen and inserted a logo. This logo is displayed in a circular shape.

How can I change the logo to a square/rectangular shape?
0
I have a server that was recently running some WordPress sites and a couple of PHP scripts.

I'm a Schizophrenic. I have another friend with mental illness that is trying to learn to code. He was wondering what WordPress was, so I installed it on my server for him . I kind of forgot about it.

Not long after I installed it for him he was hospitalized, so he never installed the site. Recently my server gave an invalid certificate error. When I reviewed the certificate I noticed that the certificate belonged to none of my sites.

When I looked at the server last night, every site had the attached file inside of it. For almost every site, it was not in the web root directory (so it could not be executed). But for one site that is was in a location that could be executed.

Is it likely that this file was uploaded from my friend's WordPress installation? Could that be used to gain access to the server?
0
Hi, we have a wordpress website in development. I didn't set it up, The web address we are working with looks like http://ipaddress/~directoryname/domainname.

So example: http://192.168.2.3/~myfolder/mywebsite.com/. When I'm doing an interior link, I am just doing for example <a href="/products/">Products</a>.

But of course that doesn't work, Should I be doing the full domain, http://192.168.2.3/~myfolder/mywebsite.com/products/

I guess when the person who's handling the domain end moves us to the actual domain, either wordpress or htaccess will point those correctly?
0
we have inherited a wordpress website to maintain from a retiring admin. What I would phrase the 'footer' (excuse me whatever the web equivalent term is for the end of each page) of each page is a logo, but that needs to change. Is it common in wordpress that would only need to be set once, or will I need to update the image numerous times (once per page). Unsure as yet where to look to change, and whether it is do-able in one go. We do have access to WP admin centre with admin rights to edit anything.
0
When editing a page, specifically someone's Title, in Word Press, in wp-admin, the change was made, I hit Update, and Preview shows the change and it looks good.
However when pulling up the live web page the change does not show?
Why would this happen?
Did I miss something?
0
mobile menu opens and closes on every page refresh. please provide solution.
https://www.cssigniter.com/vip/acoustic/

in mobile, if i click on the menu to go to any page, when the page loads, the mobile menu comes on top and stays for 3 seconds.
ideal experience is when page refreshes the mobile menu should not open and close
pl help
0
Looking for someone familiar with the Wordpress plugin WP Google Maps -- https://www.wpgmaps.com/

I have two issues with it and I have upgraded from the Free to the Pro version.  

* I can not get the Labels Tag to stay on when I select a Show Satellite Imagery..

* I am trying to change the Markers more or less on the fly.  In that when the Page is loaded or refreshed I want to get  from a PostgreSQL database the "current" location of my trucks, and update the Markers on the map before it displays..  I can get the data when the page loads with a PHP script and I can update the CSV import file but I don't see how to force the Map Import after I have the csv file set and before I render the Map. or how to this when the user refreshes the screen.

Should I be doing this a different way, in this tool ?

https://www.wpgmaps.com/documentation/exporting-and-importing-your-markers/
0
https://www.optiv.com/   The way the information boxes are laid out, and open up, is there any way you can think of to replicate that in wordpress? I'm using Divi theme. thanks.
0
I want to add a class to the <ul> of the widget generated by Wordpress ("Recent Posts" Widget)

This is my register sidebar code:

        register_sidebar( array(
        'name' => __(' Main Sidebar ', 'mysite'),
        'id' => 'sidebar-2',
        'class' => 'submenu',
        'description' => __( 'Main Sidebar', 'mysite' ),
        'before_widget' => '',
        'after_widget' => '',
        'before_title' => '<h6>',
        'after_title' => '</h6>'
    ));

Open in new window


The html output of the actual unordered list is:

    <ul>
        <li>
            <a href="http://localhost:8888/a-third-post/">A Third Post</a>
        </li>
        <li>
            <a href="http://localhost:8888/another-post/">Another Post</a>
        </li>
        <li>
            <a href="http://localhost:8888/news-article-title/">News Article Title</a>
        </li>
    </ul>

Open in new window


But I want the ul to have a class of 'submenu'

So,

    <ul class="submenu">
     <li>
      .....

Open in new window


Surely there has to be an easy way to do this?(without jQuery)
0
I was able to find a function to store the Gravity Form Entry ID but how can I bring this value into my other function? In the second function I need to use the ID at the end of the URL?
'post_url' =>  'https://newnprn.wpengine.com/classifieds/entry/' . $meta_value,


//Save GF Entry ID
add_action('gform_after_submission_2', 'save_entry_id', 10, 2);
function save_entry_id($entry, $form){
    global $meta_value;
    global $meta_key;
  
 $meta_key = 'gform_entry_id';
    $meta_value = $entry['id'];
}

/* new classified submission */
add_action('save_post', 'um_activity_new_classified',  99999, 1 );
function um_activity_new_classified($post_id ) {

if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return;
$post = get_post($post_id);

if ( 'classifieds' !== $post->post_type || $post->post_status!='publish') 
return;

$author_id = get_current_user_id();
um_fetch_user( $author_id );

$author_name = um_user('display_name');
$author_profile = um_user_profile_url();

if (has_post_thumbnail( $post_id ) ) {
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), 'large' );
$post_image = '<span><img src="'. $image[0] . '" alt="" title="" /></span>';
} else {
$post_image = '';
}
if ( $post->post_excerpt ) {
    $post_excerpt = '<span class="post-excerpt">' . wp_trim_words( $post->post_excerpt, $num_words = 25, $more = null ) . '</span>';
} else {
    $post_excerpt = '';
}

UM()->Activity_API()->api()->save(
array(
'template' => 'classifieds-submission',

Open in new window

0
Hi!
I've got foreach loops going for custom post type taxonomy terms. The code I'm using adds a comma between terms, but not after the final term. I've got it working, however, there is a space between term and comma. I can't figure out how to remove it.

Lessons---undercover-calculus-1.jpg
Here's my code:

<?php 
	
					$terms = wp_get_object_terms($post->ID,'grade-level');
					// init counter
					$i = 1;
					
					if( $terms ): ?>
					
					<strong>Grade: </strong>
					
						<?php foreach( $terms as $term ): ?>
					
						 <?php // Get the term link
	
	
							if( $term->count > 0 )
	 							// display link to term archive
	  						echo '<a href="' . get_term_link($term->slug, 'grade-level') . '">' . $term->name .'</a>'; ?>
	  						<?php //  Add comma (except after the last theme)
	  						echo ($i < count($terms))?"," : "";
	  						// Increment counter
	  						$i++; ?>
						 
													
						<?php endforeach; ?>
						
						<?php endif; ?>
						<?php 
	
					$terms = wp_get_object_terms($post->ID,'content-standard');
					// init counter
					$i = 1;
					
					if( $terms ): ?>
					<br>
					<strong>CCSS: </strong>
					
						<?php foreach( $terms as $term ): ?>
					
						 <?php // Get the term link
	
	
							if( $term->count > 0 )
	 							// display link to term archive
	  						echo '<a href="' . get_term_link($term->slug, 'content-standard') . '">' . $term->name .'</a>'; ?>
	  						<?php //  Add comma (except after the last theme)
	  						echo 

Open in new window

0
How to customize my WordPress Homepage

I have WordPress and a PowerPress Blubrry plug-in, for my podcast. And thus far, I have only added my logo.

I need to see what options I have to customize the landing page.

Do I need to create a new Page for this? If so, how do I make that page the default?

I want to customize that page using conventional WordPress tools.

Thanks
1
Next steps with AWS. Ubunto, MariaDB, MySql and WordPress

I have installed the latest version of Ubuntu, MariaDB, with the following:

# Setup latest stable LAMP related PPAs
LC_ALL=C.UTF-8 add-apt-repository ppa:mamarley/updates </dev/null
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/apache2 </dev/null
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php </dev/null
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/nginx-mainline </dev/null
LC_ALL=C.UTF-8 add-apt-repository ppa:isc/bind-dev </dev/null

Open in new window


# Setup latest stable MariaDB PPA
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --skip-maxscale

Open in new window


# Verify MariaDB-10.4.X installable
apt-cache show mariadb-server-10.4

Open in new window


# Install MariaDB-10.4.X latest + MySQL compatibility tools/libraries/headers
apt-get install mariadb-server-10.4 mariadb-client-10.4 libmariadb-dev-compat

Open in new window




Now, when I typed mysql, I got MariaDB

root@ip-1.2.3.4:/home/ubuntu# mysql

MariaDB [(none)]> exit
Bye

So, in order that I do not mesa up this clean installation, I need to
- create the database
- assign user permissions
- install WordPress

Please provide me those steps, and I will be ready to start digging into WordPress.

Thanks
0
I made a clone of my currently running Wordpress Server (in AWS) and upgraded PHP by using this command:

sudo yum install -y php72

Open in new window


This worked, but munged up MySQL in the process.

When I hit the Wordpress site the error I get is:

"Your PHP installation appears to be missing the MySQL extension which is required by WordPress."

I made the PHP.info page (e.g. /phpinfo.php) and on the CLONE there is no MySQL listed, but on the original server (the one which I have NOT upgraded PHP on) there are a ton of MySQL.

I will admit that this look pretty old (mysqlnd 5.0.12-dev - 20150407).

That said, how can I update MySQL so that it matches the version of PHP that I upgraded to? Is this an easy fix or should I go about this a different way.

Thanks for your help.
0
I am using Wordpress 5.2 and I am wanting to make my content narrow like this example:

https://mgnv.org/

Can anyone tell me how to do this?  Meaning not take up the whole screen  on a desktop.

Thanks,
0
Updating Wordpress I also had to update the php version from 5.2.9-1 to 5.6.40.

I had problems accessing the MySQL DB with the error:
"Deprecated: mysql_query (): The mysql extension is deprecated and will be removed ..."
but I have solved it.

But I have problems passing variables from one php page to another page.
In particular by doing the:

<FORM name = "XXX" method = "post" action = "first_page.php" onSubmit = "yyy">
...
<INPUT type = "text" name = "a0" value = "" maxlength = "150">
...

When the second_page.php is loaded, the code starts like this:

<? Php

if ($a0! = '')
     {...
...

the variable $a0 is always empty!

But the code with the php version 5.2.9-1 works great.
Can someone help me?

Sorry for my english.
0
Should I use AWS.EC2.Ubuntu.WordPress w/  Dynamodb over MariaDB?

I am having trouble installing MariaDB at the moment and also just learned MariaDB may cost me $$$ on the free tier, since MariaDB costs hours. I only have 750/month free. And Maria may cut that 750 in half. True?

So, I am considering

AWS.EC2.Ubuntu.WordPress.Dynamodb

I see a WP plug-in for Dynamodb, so that should be quite simple.

Is this a Good idea?

a Bad idea?

Will I be locked into Amazon with this decision? Or, does WordPress enable me to port data from Dynamodb to MySql, at a later time?

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