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

This is a follow-on to this question - https://www.experts-exchange.com/questions/29113292/Need-To-Know-Syntax-To-Display-Attribute-On-Checkout-Page.html

I need to know how to make this show attributes dynamically to whatever is in the shopping cart on the checkout page.

Thanks,
0
We have an organization with 11 departments and we are building a wordpress for our intranet site where there would be two designated employees in each department with the ability to edit their departments content.

Only each two employees are allowed to edit content for their various departments. Every empoyee can see every departments pages however.

I have been looking for a plugin that can help us accomplish this and a friend recommended the following plugin:

https://wordpress.org/plugins/ultimate-member/

Problem is that it is difficult to see how this plugin can be customized to allow each designed employees the ability to edit their own department's content.

Does any one know how to manipuate this plugin?

Better yet, is there an easier plugin that can be used to do this even if we have to purchase it?

Thanks in advance for your help.
0
I have been asked to look at a WordPress blog that is not displaying correctly after change over to HTTPS. I did a WP CLI search and replace on the URLS which amended some of the URLS but the links to styles and scripts is still on HTTP.

After doing some debugging in the core I discovered the following anomaly. The constant WP_CONTENT_URL which is set from the get_option('siteurl') is CHANGING its value mid execution.
I have put debug statements into

wp-includes\link-template.php
And
wp-includes\default-constants.php

To try and see what is going on.

I placed debug in the function plugins_url(); (the DEBUG statements dump out various variables, constants and returns from function calls)

Before the header.php of the template is loaded I get this

DEBUG path: searchwp-live-ajax-search  // (path passed to the function)
DEBUG siteurl: https://www.domain.com/blog // (result of get_option('siteurl');
DEBUG WP_CONTENT_URL: https://www.domain.com/blog/wp-content  // Dump of the WP_CONTENT_URL
DEBUG WPMU_PLUGIN_URL: https://www.domain.com/blog/wp-content/mu-plugins // Dump of the WPMU_PLUGIN_URL
DEBUG WP_PLUGIN_URL: https://www.domain.com/blog/wp-content/plugins  // Dump of the WP_PLUGIN_URL
DEBUG url: https://www.domain.com/blog/wp-content/plugins // Dump of the resulting URL

Open in new window


After the <!doctype ...>

DEBUG path: themes/blank/style.css
DEBUG siteurl: https://www.domain.com/blog {This does not change}
DEBUG WP_CONTENT_URL: http://www.domain.com/blog/wp-content 
DEBUG WPMU_PLUGIN_URL: http://www.domain.com/blog/wp-content/mu-plugins 
DEBUG WP_PLUGIN_URL: http://www.domain.com/blog/wp-content/plugins 
DEBUG url: http://www.domain.com/blog/wp-content/plugins

Open in new window


WP_CONTENT_URL is set in the function wp_plugin_directory_constants() in the following file
wp-includes\default-constants.php

if ( !defined('WP_CONTENT_URL') )
	{		
echo "Setting WP_CONTENT_URL to : " . get_option('siteurl') . " line 139 of " . __FILE__ . "\n";
		define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up
	}

Open in new window

The debug statement is mine and is output only ONCE for the page.

Anyone have any ideas how / why / where the WP_CONTENT_URL constant is suddenly getting changed from an https:// prefix to http://

I have searched the code base for WP_CONTENT_URL - no other lines manipulate the setting of its value - they only reference it.

This does not seem possible but it is obviously happening - any thoughts.
0
Wordpress PHP to show certain content not working all of the time.

I have a block of PHP IF code to show a certain form on certain pages.  Some pages it works on but others it does not.
The very first one: is_page(15361) // Messages does ot work and I have double checked that it is the correct ID number.  It is a child of another page but most of the below are.  I have moved that OR statement around and if I try to add any additional OR statements they won't work either and I have confirmed the page ID
<?php
if (
        is_home() // blog
        || is_page(15361) // Messages
        || is_page(18835) 
        || is_page(17880) // solutions
        || is_page(13339) // approach
        || is_page(17956) // create-value
        || is_page(15501) // resources
        || is_page(17973) // capture-value
        || is_page(17967) // elevate-value
        || is_archive('cv_case_study') // customers
        || is_page(15471) // books
        || is_page(15718) // customers
        || is_page(15845) // results
        || is_page(15467) // community
        || is_page(15288) // about
        || is_page(19553) //  Expand Value
) {
    ?>


    <div class="row row-bleed footerform">
        <section class="cta cta_contact" style="background-image:url('/wp-content/uploads/2017/11/Full-Bubble.png')">
    <?php $cta_contact_headline = "Let&rsquo;s Have a Conversation"; ?>
    <?php $cta_contact_subhead = "We exist to help you win."; ?>
    <?php $cta_contact_description = 

Open in new window

0
Hi Experts

My client is with GoDaddy, and has asked me to re-create her WordPress website. I usually do this on my localhost first, then transfer live. When I did, the Home page works as expected, but all other give

No input file specified.

The steps I've taken so far...

1- Deleted client's old site (with GoDaddy's interface)
2- Re-installed WP (with GoDaddy's interface), which asked me for new UID/PWD
3- FTP Upload my Parent / Child theme, and activated
4- Installed plugiins: Polylang and Contact form 7
5- Locally, exported WP DB  as .sql file.
6- Within the .sql file I search and replace http://localhost/domain.com with https://www.domain.com
7- Imported sql file to GoDaddy.

Note: step 2 created table prefixes as wp###_, where step2 is just the default wp_, so just in case I left both sets of tables.  This also over-wrote the UID/PWD with my local ones, which is understandable and ok.

8- Adjusted wp-config.php on GoDaddy to use the wp_ prefix.
9- Did minor tweaks to the theme customizations and widgets. This got the home page working as expacted, but not the rest.

I Googled the error and it just gives 2 solutions: update WP (it is the latest version); and update .htaccess my live .htaccess looks like this:

# BEGIN GD-SSL
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_USER_AGENT} ^(.+)$
RewriteCond %{SERVER_NAME} ^atsinlaw\.com$
RewriteRule .* 

Open in new window

0
Need to create a page in WordPress that would connect to the API and display a search form and list of items from an external API:

Example that needs to be achieved:

http://www.pharmachoice.com/health-advice/medical-conditions

Info about Webservices:

Conditions
Specification: http://webservice.mediresource.com/mridisease.asmx?WSDL

URL: http://webservice.mediresource.com/mriDisease.asmx?op=GetDiseaseInfo

Changeable Variables:
•      strDiseaseInput – any text string (ie. cancer, blood, nose, etc.)
•      intDiseaseID – disease id
•      strAlpha – letter of the alphabet (ie. a, b, c, etc.)

Set Variables
•      intChannelID = 0
•      intLanguageId = 0 (English) / 1 (French)
•      intCountryID = 0
•      strWsKey = {removed}
•      intCaptureOne = 0
•      intCaptureTwo = 0
•      intCaptureThree = 0
•      intCaptureFour = 0
•      intCaptureFive = 0

I have not had the chance to work with API's in the past, so any insight will be very helpful.

Thank you very much!
0
Hi, Working o a Woo-commerce Site, selling food products. All products have "Nutrition Facts", I was thinking to add an extra "HTML Area" field to the product entry page, but not sure if it is a good idea, it can be done differently or even how to. Can someone help me here please?

maybe similar to this link, I had another one, but can not find it

https://www.royalnutcompany.com.au/confectionery/all-confectionery/fruit-jellies
0
Trying to login to wordpress/wp-admin

It just redirects back to the login page

I have tried all the suggestions I have found from various searches

ie
removing Themes, Plugins, ,htaccess

I cannot see any cause of problem
0
I have the following PHP code to update custom fields values on my Wordpress custom post type posts. This code works perfect and in this example it SET all posts with value "premium" to value "any". That works perfect.

What I want to do is to add 2 new variables to specify the post id range to be updated: "$from_post_id" and "$to_post_id".

So, when I add $from_post_id = 10; and  $to_post_id = 20; it will update posts from id 10 to 20 only and not all posts as it does currently.

Here is my current code:

$from_value = 'premium';
$to_value = 'any';


$type = 'ebooks';
$args = array(
  'post_type' => $type,
  'post_status' => array('publish', 'pending', 'draft', 'auto-draft', 'future', 'private', 'inherit', 'trash'),
  'posts_per_page' => -1,
  'ignore_sticky_posts'=> 1
 );
$lbt_query = null;
$lbt_query = new WP_Query($args);
if( $lbt_query->have_posts() ) {
  while ($lbt_query->have_posts()) : $lbt_query->the_post();
  
  if(lbt_get_meta( 'lbt_meta_ebook_membership' ) == $from_value){
 update_post_meta( get_the_id(), 'lbt_meta_ebook_membership', $to_value );
  }
  
  endwhile;
}
wp_reset_query();

Open in new window


Please help.
Thank you.
0
I need to display the attribute value on the checkout page for each product being purchased.  I am  using Woo Commerce 3.4.  Please give me the syntax to access the value.

Thanks,
0
Hi Experts,

I am trying to embed a Google Map on to a WordPress website with a single location, just to show where the office is.

I see a lot of plugins, and on Google it is asking me for a billing account, but I thought this was free as it will have no interaction just display and zoom?

Any help will be greatly appreciated,
0
I have a wordpress website with thousands of custom posts.  I'd like to be able to edit them and/or bulk create new custom posts by inputting information into something like a spreadsheet broken down by field.

I've tried the WP-CSV plugin and it did work for bulk editing and post creation until the site got too big (memory issues I believe).  

Is there a plugin that might work for this application, or is this best as a mysql operation (I don't know mysql).

Thanks!!
0
Hello Experts,

What is the proper image size for WordPress featured images, and any advice on where to get them on that size? I am a developer, but not very good designer.
0
Hi Experts,

In WordPress, how do I create a  PHP template to be used by multiple of pages (not all)? I have already created my child theme.
0
from a whois on godaddy.com/whois
Name Server: NS75.DOMAINCONTROL.COM
Name Server: NS76.DOMAINCONTROL.COM
DNSSEC: unsigned

A website owner hires another person to blog his small business wordpress website
Website thinks his company is hosted elsewhere and thinks that his blogger has a dedicated server
I think it is hosted by godaddy
Maybe the godaddy nameservers point somewhere else

Is there another test I can show website owner where his website is hosted
I cant log into his godaddy or wordpress
0
I want to add the "sale to date" on my on-sale category page for each product.  I have put together this function but it doesn't seem to be getting any values so please tell me what is wrong.  My Woo Commerce version is 3.4.4

add_filter( 'get_date_on_sale_to', 'custom_price_html', 100, 2 );
function custom_price_html( $price, $product )
{
    global $post;
    $sales_price_to = get_post_meta($post->ID, $data['date_on_sale_to'], true);
    if(is_product_category( 'on-sale' ) && ($sales_price_to != ""))
    {
        $sales_price_date_to = date("j M y", $sales_price_to);
        return str_replace( '</ins>', ' </ins> <b>(Offer till '.$sales_price_date_to.')</b>', $price );
    }
    else
    {
        return apply_filters( 'woocommerce_get_price', $price );
    }
}

Open in new window

0
I had this question after viewing Wordpress wp_mail, cant send attachment.
Me also tried to a pdf attachment by using wp_mail() function but I am receiving email without attachment.
0
My boss has a website,  call it xyz.com. It's built on wordpress and Divi theme.

He has another domain,  fuhgedabudit.com. He wants it to be a section of xyz.com, looking the same, but accessed via the domain fuhgedabudit.com.

What's the best way to do that?  The new section will be an ecommerce site, and xyz.com is already an ecommerce site.

My thinking is to have a folder xyz.com/fuhgedabudit, and build a new site in there. Then use htaccess or Cname to direct fuhgedabudit.com to that folder.

Thanks in advance!
0
I'm trying to set up a project that is compromised of a few videos for a free online course. It basically has 2 requirements.

1) It needs to be embedded on a wordpress site (videos can stream from Vimeo, YouTube , etc).

2)We want to collect the email address (and possibly other basic info like name/organization too).

How would I do this with Wordpress or a plugin?

The user would also need to come back periodically, so I guess they would need a login too so they wouldn't have to resubmit their info each time.
0
I'm using a wordpress theme and would like to move the site title line up on the line with the logo and menu. Is there an easy way to do this?
0
Without logging onto wordpress
Can I use view source to determine wordpress version number?
0
wordpress website of new york city plumber

asked me if website is good

Isnt all wordpress the same because it is a content management system?

What should I look for that is broken?
Without logging in?

I cant find version number so I asked another question.
And new version number doesnt mean good.
I could do a "hello world" website with newest version
0
want to host a website only in new york city

I do not want customers from outside new york city

new york city plumbing
dont want to pay for outsiders to click

want website to load quick only in new york city
wordpress website
0
Why am I getting this error? I can't log into this site.

I've tried renaming the plugins folder and renaming parent and child theme. So, I don't think it's a plugin issue. I also upped PHP to 7 from 5.6, then back again. Keep getting this error.

http://000m8zt.wcomhost.com/wp-admin/

Thanks!
0
Hello,
I have a large logo that I’d like to use with the free wordpress theme wp real estate. It’s 640×108. I’d like it to be on the top left side of the page and then the menu on the next line with the menu on the right side of the page. How can I accomplish this?
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.