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

Hi Experts,

I'm working in a Cherry Wordpress template with a slider on the homepage. I resized the images in Photoshop, deleted the old images in Wordpress media and reloaded the new ones into media area. Then I changed the dimensions in the  theme-init.php file and saved.

Then I created new sliders with the newly sized images from media. The images/slider is still not showing up as I've changed the dimensions. I've refreshed the page, cleared history, shut down the browser, tried another browser and still no change.

This is from the theme-init.php file with changed dimensions. (New dimensions are: 1400 by 448)
		// This theme uses post thumbnails
		if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9
			add_theme_support( 'post-thumbnails' );
			set_post_thumbnail_size( 300, 225, true ); // Normal post thumbnails
			add_image_size( 'slider-post-thumbnail', 1400, 448, true ); // Slider Thumbnail
			add_image_size( 'slider-thumb', 100, 50, true ); // Slider Small Thumbnail
		}

Open in new window


When I view source, it still shows the old dimensions. (Old dimensions are: 1300 by 400)
<div id="camera597a95da6bdd9" class="camera_wrap camera">

	<div data-src='http://cea.98d.myftpupload.com/wp-content/uploads/SouthMainRain-1300x400.png' data-thumb='http://cea.98d.myftpupload.com/wp-content/uploads/SouthMainRain-100x50.png'></div><div data-src='http://cea.98d.myftpupload.com/wp-content/uploads/SouthBluffsSkyline-1300x400.png' 

Open in new window

0
Are You Using the Best Web Development Editor?
Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Hello,

I'm hosting a WordPress website on GoDaddy Managed WordPress. Unlike GoDaddy's cpanel hosting, with Managed Wordpress they do not log IP addresses of website visitors in an access log file.

Would love to have some dependable code to add so as to record to a file the IP addresses of visitors to my website.

Would also need instructions about which wordpress file to add the code.

Thank you.
0
I am asking questions about hostupon shared linux hosting


You're overcomplicating things. Exporting the DB and reimporting it is simply making a copy of the DB and you end up exactly where you started.

You do not need to export or reimport the DB. The DB is already there and ready to go. Just install the scripts, point them to the DB.

The pointing is done by editing the DB settings in the script configuration file. If you do not know the DB user password, you can reset it and use the new one.




how can I
edit db settings in script configuration file

I have database (but forgot password). I can see database because I have access to cpanel and can use phpMyAdmin

how do I reset password??
is this wordpress password or database password?
0
I'm working on a custom WordPress site that uses a BuddyBoss child theme that I've been heavily modiying over the past few months.

I'm currently working on a custom PHP template that's using JQuery's Colorbox plugin to load a PHP file in modal window via ajax.  The popup that contains the PHP file is being displayed without any issues .. and the native WordPress functions within it are working as expected. But the one BuddyPress method that I'm trying to use is not working .. namely "bp_is_my_profile()".  Here is my PHP code:

<?php 
require("../../../../../../wp-blog-header.php");
require('../../../../../../wp-load.php'); 

if ( is_user_logged_in() ) { // THIS METHOD IS WORKING

  if ( bp_is_my_profile() ) { // THIS METHOD IS NOT WORKING

		echo '<p>This is your Buddypress profile page.</p>';

  } else {
		echo '<p>This is NOT your Buddypress profile page.</p>';
  }  

}  else {  
		echo '<p>You are not authorized to access this resource.</p>';  
}
?>

Open in new window


What do I need to add to this PHP file in order for the "bp_is_my_profile()" method to work correctly?  I've already verified that this method DOES in fact work when I call it within a normal PHP template file that's part of my child theme.  I just can't seem to get it to work when calling it from any other PHP file .. despite the fact that I'm loading both the "wp-blog-header.php" & "wp-load.php" files.

Thanks,
- Yvan
0
change dates of posts/pages
date created is visible on webpage and if I create a page today; todays date will be visible

trying to make posts seem older than they really are

given only
wordpress login
wordpress password

yes I know dates can be changed in a database but I am looking for a simple answer
0
is there a wordpress backup plugin

something that can be installed
given only
wordpress login
wordpress password
0
cpanel
shared linux hosting with hostupon.com

wordpress scriptaculus install

folder was deleted and there is no file backup

I have database but do not know database password (because password was set up one click install by wordpress scriptaculus)

how could I recover the words of wordpress (I know the images are gone)
0
Hi

In my WP blog, I'd like to give my users the opportunity to sell their associated art (their music)
Now that CD's don't exist, what are the opportunities here? mp3's, iPod?
How is music sold?
Do most people have the ability to acquire this music, in practicality?

Thanks
0
I have a new Wordpress installation on IIS 8.5 on Windows Server 2012 R2 and it working.  I added PHPMYADMIN to manage the DB's and I am getting this error when I login to PHPMYADMIN.

MySQL 5.1
PHP 5.6
Wordpress 4.8


Warning in .\libraries\dbi\DBIMysqli.php#574
 mysqli_real_escape_string() expects parameter 1 to be mysqli, boolean given

Backtrace

 .\libraries\dbi\DBIMysqli.php#574: mysqli_real_escape_string(
 boolean false,
 string '_',
 )
 .\libraries\DatabaseInterface.php#2735: PMA\libraries\dbi\DBIMysqli->escapeString(
 boolean false,
 string '_',
 )
 .\libraries\navigation\nodes\Node.php#449: PMA\libraries\DatabaseInterface->escapeString(string '_')
 .\libraries\navigation\NavigationTree.php#289: PMA\libraries\navigation\nodes\Node->getData(
 string 'databases',
 integer 0,
 string '',
 )
 .\libraries\navigation\NavigationTree.php#847: PMA\libraries\navigation\NavigationTree->_buildPath()
 .\libraries\navigation\Navigation.php#45: PMA\libraries\navigation\NavigationTree->renderState()
 .\libraries\Header.php#425: PMA\libraries\navigation\Navigation->getDisplay()
 .\libraries\Response.php#260: PMA\libraries\Header->getDisplay()
 .\libraries\Response.php#273: PMA\libraries\Response->_getDisplay()
 .\libraries\Response.php#432: PMA\libraries\Response->_htmlResponse()
 PMA\libraries\Response->response()
0
Hi

On my latest Freelancer project, the developers did the first part, the blog,
but we agreed that the second block, the video, would be another project.

Does that - in chat - agreement in the FL chat system count as a kind of legally binding agreement? - chat is logged

Thanks
0
WordPress Tutorial 2: Terminology
WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

By default you can get the list of post titles followed by the date of the post. As shown below. However as in the second list I would like a list but with breaks in the list to show when the month has changed. How is this possible.

Post 1 title
Post 1 date
Post 2 title
Post 2 date
Post 3 title
Post 3 date
Post 4 title
Post 4 date
Post 5 title
Post 5 date
Post 6 title
Post 6 date

What I want is :

July 2017
-
Post 1 title
Post 1 date
Post 2 title
Post 2 date
Post 3 title
Post 3 date

June 2017
-
Post 4 title
Post 4 date
Post 5 title
Post 5 date
Post 6 title
Post 6 date

Thanks
0
How do I use a short code inside a link, I have a shortcode [ThisURL] and that returns the URL of the current page.

However if I have the code:

<a href="https://www.facebook.com/sharer/sharer.php?u=[ThisURL]">Share on Facebook</a>

This then makes a link to:

https://www.facebook.com/sharer/sharer.php?u=[show-jagged-ThisURL]

and not as I would like:

https://www.facebook.com/sharer/sharer.php?u=my-website.com
0
I having the issue migrate one of the website from dreamhost to Cpanel .In the xxxx_Options SQL database I unable to see the content because to let in work I have to change the path for public_html.I am able to search public_html and one match but can not read .I has migrate from CPanel to Cpanel befire there is no problem.Please advice.
old.PNG
new.PNG
0
Hi, In my first WP blog, my users were just usernames.

Now, their posts have their real-names attached. How do I change this?

Thanks
0
As a newbie I rented a winserver2016 vps and dezigned a wordpress site on it. The site is simple wit 8 pages, 2  mailchimp forms, some picures and two youtube embedded links.
Now I have 2 options:
a) hosting my site on a hosting server with CentOS servers (Versio)
b) keeping the winserver2016 at TransIP and keep the site running on it

I have insufficiënt knowledge about securing a CentOS server and would be happy working within a Microsoft en ironment which I am familiar with.
Mail will be done by hosted mailservers of Versio or TransIP

I need the sit to be stable and fast and would like to know how many visits a month can be served by both options without major delay (less than 1 sec for loadi g a page is required)
The wordpress theme is generated press with 4-6 plugins for mailchimp, security and youtube.

Any advise will be apreciated highly!!
0
<div class="panel panel-default">

<div class="panel-body">

<form action="/action_page.php">

<div class="form-group">
    <label for="productType">Product Type*</label>
    <select class="form-control" id="productType">
      <option>Purchase</option>
      <option>Refinance</option>
    </select>
  </div>
 

<label for="purchasePrice">Purchase Price*</label>
<div class="input-group">
  <span class="input-group-addon" id="purchasePrice">$</span>
  <input type="text" class="form-control" aria-describedby="purchasePrice">
</div>

<label for="downPayment">Down Payment*</label>
<div class="input-group">
  <span class="input-group-addon" id="downPayment">$</span>
  <input type="text" class="form-control" aria-describedby="downPayment">
</div>

<label for="state">State*</label>
<div class="form-group">
      
      <div>
            <select class="form-control" id="state" name="state">
                  <option value="">N/A</option>
                  <option value="AK">Alaska</option>
                  <option value="AL">Alabama</option>
                  <option value="AR">Arkansas</option>
                  <option value="AZ">Arizona</option>
                  <option value="CA">California</option>
                  <option value="CO">Colorado</option>
                  <option value="CT">Connecticut</option>
                  <option value="DC">District of Columbia</option>
                  <option value="DE">Delaware</option>
                  <option value="FL">Florida</option>
                  <option value="GA">Georgia</option>
                  <option value="HI">Hawaii</option>
                  <option value="IA">Iowa</option>
                  <option …
0
This site was created a very long time ago and a second install was done in a sub-directory named memlog. It has the permalink structure of just /%postname%/.
The root install uses the permalink structure of /%year%/%monthnum%/%postname%/

We want to import the posts from the memlog install but would like a way to get the existing search engine links to those to redirect to the permalink structure of the root install without having to add 1150 redirects in the htaccess.

What I've done so far is imported the memlog posts into a dev area and added a parent category of memlog then moved all categories to use that as their parent in the hopes of trying to get a way to target "memlog" for the redirect to the root's structure. Once there's a way to get that main category and all it's subs to redirect to the date structure then I can import from the dev into the root site.

Any help would be very much appreciated.
0
The twentysixteen theme has a visible border on all four sides of the viewable browser area on the desktop (not visible on mobile) the the border defaults to 21px how do I remove or reduce this border please.
0
I am about to launch a WordPress/WooCommerce site but worry about around the clock support for my site since my developer's in India, Monday thru Friday.

That's about 25% of the week! That being said, I would expect the bulk of sales to be on Eastern Standard Time, 8AM to Midnight, which means his coverage percentage is higher that 25%.

Are there are support models you can think of which would be me paying some small retainer for a WP developer to be on call and getting notified if there is a hiccup or site outage? Then, if there is real work that's needed, I'd pay on an hourly basis?

Curious...

Do I need to be worried at all about the site have problems which could cause it to be unavailable to process further orders?

I am not worried there may be a one in a hundred error rate which I can resolve when the email comes in, but instead, having a site outage causing orders to stop.
0
PeopleSoft Has Never Been Easier
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

I need to decide if I should hire a security expert to try and "break" my site.

I have the latest updates for WordPress and WooCommerce and host it at AWS as EC2.

Where kinds of security problems might I have?

I already changed the database username to no longer use "root".

Can you think of things I can do to nail down the site?

Is it worth having a security guy look at it?

Thanks.
0
I'm trying to apply a minor customization to a WordPress admin screen, and would like to figure out how to populate the closest text input field with radio button value on click using Javascript / jQuery.  

The HTML that I currently have in place is as follows:

 <div class="rwmb-input">

  <input size="30" type="text" class="rwmb-text" id="fave_plan_title" name="floor_plans[0][fave_plan_title]">

  <div class="floor-plan-titles">

      <input class="plan-title" type="radio" name="plan-title" id="plan-title1" value="First Floor">First Floor 
      <input class="plan-title" type="radio" name="plan-title" id="plan-title2" value="Second Floor">Second Floor
      <input class="plan-title" type="radio" name="plan-title" id="plan-title3" value="">Custom

  </div>

</div>

Open in new window


To clarify .. I'd like to have it so that when you click on one of the 3 different radio buttons, I'd like for the text input field that's above them to be populated with that radio button's value (ie: either "First Floor", "Second Floor", or "" .... nothing / clear the field).

I'd normally do this by using the text input field's unique ID attribute selector .. but these text input fields are being generated dynamically, so I'd prefer to just traverse the DOM somehow and to just populate the text input field that's above the radio buttons.

Also .. note that I need to implement this using jQuery's noconflict mode (which uses "jQuery" prefixes instead of "$").

Would someone here be so kind as to provide me with a Javascript function that would allow me to accomplish this?

Thanks!
- Yvan
0
HI

In the home page, how to align the icons line by line

thank you

Georges
0
Hi,
I would like to export the posts from an old wordpress site.  I only want the posts, and I want them to override the ones in my new site.  So what do I do in MySQL to export the old posts and then import them into the new table.
Is is as simple as selecting the table and then importing it into the new wordpress site.  I don't want to mess anything on the new site (except the posts of course@)
I hope someone can help me do this one please?
Thank you,
A
0
Hi

My website is setup to run over http or https, I assumed everything was working until recently.

On my mac in Safari and Firefox the following two URL's work fine
http://www.petenetlive.com
or
https://www.petenetlive.com

HOWEVER in IE it does not load the CSS and bleats about mixed content, Now I can view the source and see that the css is being loaded from http URLs so that's probably causing the problem, (why Firefox and Safari works I don't know?)

I've tried various Wordpress plugins that claim to fix SSL problems - none of them worked. I've set the site in Wordpress to use the https URL, I've also set this in the wp-config file.

HOW DO I FIX THIS?

Note: In running NGINX and don't have a .htaccess file

Pete
0
I have some customised thumnails on a page which I would like to link to a specific nexgen gallery.
How can I create a link from my image, or text to the gallery?

I hope someone can help me?
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.