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 a website (site1.com) that has a login script that it pulls from site2.com. Site1.com has a SSL certificate assigned to it, and site2.com has no SSL certificate. On site1.com I have a pop up login dialog box with a login script that is linked from site2.com. The problem is site1.com is showing mixed content (insecure warnings) when trying to use that login script. The only way to get the "secure" green lock on site1.com is to remove that content completely. Is there anyway to get this content secured while referring\linking to site2.com?

Thanks in advance!
0
I am trying to implement single sign-on using SAML 2  with a connection TO my website.

That is, when a user logs into their company website (acome.com for example), then will click a link to automatically log into our site.

Without troubling one of my clients as a guinea pig, how can I test the integration to my site?  

I was thinking about getting a wordPress site with a SAML plug-in to try it out, but I have never done that either.

Any information on testing SAML or using wordpress greatly appreciated.

We are using okta for our authorization
0
jQuery loop. I wordpress I have a section that I add logos to.  At anytime there can be any number of logos.  Sometimes more, sometimes less.  I have them fading in and it is all hard coded.  I want to make a loop to cut down on the amount of code and also be more efficient with my coding.  Depending upon how many logos there are, my php loop on the front end makes a number  addition to the ID.  So id="customer1" id="customer2", id="customer3', etc...

My jQuery is the following and I would like to turn it into an intuitive loop.  Any suggestions?
<script>
$('#customer1').addClass('visible');
            setTimeout(function () {
                $('#customer2').addClass('visible');
            }, 100);
            setTimeout(function () {
                $('#customer3').addClass('visible');
            }, 200);
            setTimeout(function () {
                $('#customer4').addClass('visible');
            }, 300);
            setTimeout(function () {
                $('#customer5').addClass('visible');
            }, 400);
            setTimeout(function () {
                $('#customer6').addClass('visible');
            }, 600);
etc.....

Open in new window

0
I have a table that list a large number of airports - 14 columns  for each airport. Each row contains lat/lon and basic info about the airport, plus links to govt website with latest info for that airport, plus link to latest weather forecast.

The concept is to use OpenStreetMap showing all airports with click on icon (different coloured icon for different runway surface), to open an on map panel to show the basic info, plus the links to govt website for that airport, and also the latest weather forecast.

My question is for advice on how best to build this in OpenStreetMap.

I have built a few website shops with WordPress/Woocommerce, but my skills in coding are limited.
I'd like to be able to place the map code in a WordPress page.
0
Hi!
I'm using the native html5 video player in WordPress. I need the video to stop on the last frame.
I found some code to do it, but it's not working. I think I may need to swap out some more dollar signs in the function, but I'm not sure.

Page is here:

http://sandbox.intrepidrealist.com/eqogo/alicias-test-page/

Here's my script:

<script>
			(function(jQuery) {
			jQuery(document).ready(function() {
				var $videos = $('.play_once video');
		
				$videos.each(function() {
					var $video = $(this)[0];
		
					$video.removeAttr('loop');
		
					$video.addEventListener('loadedmetadata', function() {
						var pause_at = $video.duration - 0.5,
							interval;
		
						$video.addEventListener('playing', function() {
							interval = setInterval(function() {
								if ($video.currentTime >= pause_at) {
									$video.pause();
								}
							}, 450);
						}, false);
					});
				});
			});
		})(jQuery);
		</script>

Open in new window

0
Hi All,

I am trying to figure out how to get a 301 redirect in Wordpress to open in a new window?

I am using the Simple 301 Redirect tool with Wordpress

My website -- On the sidebar, I have a redirect in place for the Apply Now link. The only problem, is it opens in the same window, I'd like it to redirect to the new site in a new tab/window.  

Is this possible, and if so, how?
0
Hello,

I logged into my word press site to update something. I haven't been on this particular page in a few years. I did the updates for the plugin and word press and now I cant go back to my backed to edit anything. When I got to my "wp-admin" from any browser it doesn't even display the login page, I now get:

The website cannot display the page
 
  HTTP 500
 
   
Most likely causes:
•The website is under maintenance.
•The website has a programming error.
 
And when I am on the browser that is still logged in, (ribbon up top still) when I click my dashboard or any edit page, it just takes me to a blank screen. I do have access to my FTP site, is there something I can change or edit? I assume since I did an update and since its been so long something got messed up. The webpage is eliesgrill.com . Thank you.
0
I have a woocommerce shopping cart.  I need to be able to update the checkout to reflect no shipping charge.  I found the following code that can update the cart via ajax and it works great, except that it deletes the tax.  I guess I need to pass the tax rate via the AJAX?  Right now it is set to update the :
billing_state: billingstate,
billing_country : billingcountry,

Does any expert know how I should update the Tax?  I think the script is over writing it but I'm not 100% sure and unfortunately there is not a url I can share

function custom_checkbox_checker () 
	{
		if ( is_checkout() ) 
		{
			wp_enqueue_script( 'jquery' ); ?>
			<script>
			jQuery(document).ready( function (e) 
			{
				var $ = jQuery;
				if ( typeof wc_checkout_params === 'undefined' )
				return false;

				var updateTimer,dirtyInput = false,xhr;

				function update_shipping(billingstate,billingcountry) 
				{

					if ( xhr ) xhr.abort();

					$( '#order_methods, #order_review' ).block({ message: null, overlayCSS: { background: '#fff url(' + wc_checkout_params.ajax_loader_url + ') no-repeat center', backgroundSize:'16px 16px', opacity: 0.6 } });

						var data = {

						action: 'woocommerce_update_order_review',

						security: wc_checkout_params.update_order_review_nonce,

						billing_state: billingstate,

						billing_country : billingcountry,

						post_data: $( 'form.checkout' ).serialize()

						};

						xhr = $.ajax({

						type: 'POST',

						url: 

Open in new window

0
if have a wordpress website that uses mysql database. there is tables called wp_2_wcmp_products_map, wp_3_wcmp_products_map and so on

i want to search all the tables with the same name something like this wp_%_wcmp_products_map how can i do this.
0
i have a wordpress woocommerc site that has multiply stores and i need to do the following

What I need done.
 For example there is a product called Rock paper tee. There is a main site witch is sfundp.org and two stores one http://sfundp.org/campendeavor/ and http://sfundp.org/h4h/ they both have the product. What I want to do is search for the products in both store and display the product information and which stores have the product.  I know I will have to do custom programing.
0
Hey,

I am trying to get some specific styling done to my sidebar menu. See Webite

What I want to do is have the parent menu items (Company Drivers, Owner Operators, Shop, Office) be bold black at all the times (just like the active menu item is now)

Then, the active page, instead of being bold black, I'd like to have a <<  to the right-hand side of it and be the same color grey as the other non-parent menu items. I believe the content code is "\00ab"

Can anybody help me with this, please?

Thank you, Experts!
0
I've successfully connected a Bull Horn (http://bullhornstaffing.com/) to my test Word Press account using a plugin called WP Black Bullhorn (https://codecanyon.net/item/wp-black-bullhorn/19341015). It feeds into the WP Job Manager job board.

The data is being passed through and received at the Word Press end, with the exception of the Job Categories that are not being picked up.

Does anyone have experience with this plugin, Bull Horn integrations or WP Job Manager.


I attempted (unsuccessfully) to manipulate the WpBlackBullhorn_OptionsManager.php file changing

              '_job_externalCategoryID' => $job->externalCategoryID,

to

              '_job_listing_category' => $job->categoryID,


Thanks in advance for any assistance.
0
I am trying to create a virtual domain in wampserver, when i try to create one in the "Add a virtualHost" panel i get the message "c:/users/edkna/desktop/allsites/site1 does not exist or is not a directory", even though there is a directory there.
I tried creating a directory in multiple places on my computer (which i have full admin rights to) I am carefull to correctly copy and past the path to the directory and paste it into the "complete absolute path of the virtualhost" field but I get this error message every time. (see the attached screen capture errorMessage.JPG)

Also another issue that is probably related to the above issue, when I tried to add a second directory in  C:\wamp\www  for a another Wordpress site, I get the following error messages:
( ! ) Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
( ! ) Fatal error: Unknown: Failed opening required 'C:/wamp/www/site2/index.php' (include_path='.;C:\php\pear') in Unknown on line 0 (see the attached screen capture anothrErrorMessage.JPG)

Can you tell me how to fix this problem?

Hi Dave,
 you said it could be a permissions issue.  Properties/Security show I have full control.  This is also my personal computer which I have all privileges to. are you referring to some other permissions that I am not thinking of? I was able to create virtual domains six months ago, so I don't know of any thing that is different on my computer now.

Hi noci,
 I pasted in the path with …
0
I want to create a store on one of my sites. I'm wondering if I can use CNAME to do this.
It's a wordpress site.

So say the site is bottles.com
I'd like "store.bottles.com" can I do this via CNAME in the zone editor?

Thanks
D
0
Hi I have two wordpress sites I'm working to optimize. https://varvy.com/pagespeed/improve-server-response.html using this to start.

I understand how to combine CSS into one minimized file, same with js. What I don't know is how to then remove the calls from the pages looking for the old files.

EG: site is techgardens dot com. I could ostensibly take all the css from the attached list of stylesheets and add them to my divi child style.css.

But then how do I get rid of all the calls for all the other stylesheets, in a way so that when I upgrade plugins and themes and wordpress, they don't come back? I hope that makes sense. thanks.
stylesheets.txt
0
Installing IIS and then Wordpress, how to install in on a separate drive than the one with the OS.
0
Quickly getting sales for my in-person tours of Boston

I have a tour planned to provide an in-person view of some shocking discoveries I have revealed in my book. And I need to find quick ways to sell tickets.

Topics are very juicy... 9/11 and Boston architecture which heralded in the attacks, BEFORE 2001.

I would consider old-fashioned methods, like having someone hand out brochures in busy places. Advertising in publications, but that takes time to get established.


But I suspect the high-tech options are more scalable and cheaper.

I MAY use EventBrite to sell tickets since I want people to be able to buy tickets on their mobile devices, and really do not want ti reprograms my WordPress site, just to have a sub-optimal solution.

I will eventually need a FaceBook page, to help spread referrals. But I would consider prioritizing that Facebook page if that were to be the prime way to promote the tours.

What kinds of things should I consider when making my decision about how to promote and manage my tours?

Thanks
0
Wordpress WooCommerce When you fill in form field data and for whatever reason you need to refresh the page, you loose all of your form field data.  Is there anyway to override the Core Wordpress Functionality to reload empty fields?

I tried something like this:
    window.onload = function() {



        // If values are not blank, restore them to the fields
        var firstName = sessionStorage.getItem('firstName');
        $('#billing_first_name').val(firstName);

     

        var message= sessionStorage.getItem('message');
        $('#order_comments').val(message);
    }

    // Before refreshing the page, save the form data to sessionStorage
    window.onbeforeunload = function() {
        sessionStorage.setItem("firstName", $('#billing_first_name').val());
        sessionStorage.setItem("message", $('#order_comments').val());
    }

Open in new window


Go here and pick either product: http://slideswizard.fireflie.webfactional(DOT)com/pricing/

Go to the checkout page fill in billing or customer notes and then upload a file.  It will clear the form field Data
0
I have some PHP code from a Word Press plugin that I am trying to understand.

The situation is that we are using this plug-in to encrypt data on a web site, which uses the OpenSSL lib and AES-CBC encryption.   I need to decrypt the data in a outside system.   I have VBA code to decrypt AES, but I can't get it to work.

The plug-in has a test and verification tool where you can type a string, it encrypts it, shows the encrypted text, and then the decrypted text as a check to verify that everything is working correctly.   What I am doing  is copying the encrypted text and then trying to decrypt with VBA as a test.

I have looked through the plug-in code and found the procedures they are using as part of their verification tool, but I don't fully understand PHP code.

Is there any way on a Word Press site using PHP code that I can step through the code as it executes and inspect variables?  That would be very helpful in figuring this out.

If not, I will post the code in another question for help in figuring out the steps that are being used.

Jim.
0
Wordpress remove a function from a class.
I want to remove a function from a class and in turn add a function.  The adding the function works 100%  but what I want to remove does not.
 What I want to remove from the following function is:
      // add custom fields to checkout page
            add_action( 'woocommerce_after_order_notes', array( $this, 'woo_os_checkout_fields' ) );

Here is the original Class:
<?php
public function add_hooks() {
	class Woo_Os_Public {			
			// checkout process
			add_action( 'woocommerce_checkout_process', array( $this, 'woo_os_checkout_field_process' ) );
			
			// add custom fields to checkout page
		add_action( 'woocommerce_after_order_notes', array( $this, 'woo_os_checkout_fields' ) );
			
			// save checkout custom meta
			add_action( 'woocommerce_checkout_update_order_meta', array( $this, 'woo_os_checkout_field_update_order_meta' ), 10, 1 );
			
			// add action to add an extra detail on order confirmation page
			add_action( 'woocommerce_order_details_after_order_table', array( $this, 'woo_os_woocommerce_order_details_after_order_table' ),10, 1 );
			
			//add action to add custom detail in woocommerce email for customer and admin.
			add_action( 'woocommerce_email_after_order_table',array( $this,  'woo_os_woocommerce_email_after_order_table' ), 10, 4 );
			
			// display Agreement PDF ( V 1.0.4 )
			add_action( 'init', array( $this, 'woo_os_agreement_pdf_view' ), 100 );
		}
}

Open in new window


Here is my code.
$woo_os_public = new Woo_Os_Public();
//  This filter adjusts where on the page the sign pad appears 
    class Wizard_class extends Woo_Os_Public {

        public function add_hooks() {
            remove_action( 'woocommerce_after_order_notes', array( $this, 'woo_os_checkout_fields' ) );
			// add custom fields to checkout page
			add_action('woocommerce_checkout_after_customer_details', array($this, 'woo_os_checkout_fields'));
			

        }

    }

$wizard_public = new Wizard_class;
$wizard_public->add_hooks();

Open in new window

What I want to remove from the original Class/method is : remove_action( 'woocommerce_after_order_notes', array( $this, 'woo_os_checkout_fields' ) );
0
I would like to style all bullet points on my site as a double right arrow.  I've found the HTML code for it, below (it's called angle quotation mark, right).  How could i do this in CSS?  Does it have to be an image, or is there a way to use a code to change it to this?

&raquo;	»	&#187;	angle quotation mark, right

Open in new window

0
Hi, I have a two-part question. I am running divi theme on wordpress 4.9.5 with Woocommerce. We've been having speed issues, and I got this from Bluehost, attached.

You can go to gtmetrix and check it yourself, techgardens.com.

I have tried to fix this with plugins, but they tend to break parts of the site or give me errors. So, the two-part question:

1. Will fixing these things actually make an appreciable difference?

2. If so, I would like to hire someone to make the changes without using plugins. Is that a good idea, or will changes be overwritten with updates?

Ok, 3 parts, will anyone on here be available for hire to do this? Thanks.
yslow.txt
0
We are a judicial website using wordpress. Below is an example of what we need to setup (The search doesn't work but we need it to)
(1.) http://flcourts18.org/?page_id=5135 
(2.) http://flcourts18.org/?page_id=5151 

What do you suggest?
0
I am new to php and APIs and am looking to insert a lead through a contact form in a Wordpress environment to a CRM Apptivo. Could anyone let me know why the code below is not working?

<?php
define ( 'APPTIVO_API_URL' , 'https://api2.apptivo.com/app/dao/v6/leads' );
define ( 'APPTIVO_API_KEY' ,
'xxx' );
define ( 'APPTIVO_ACCESS_KEY' , 'yyy' );


add_action( 'gform_after_submission_2', 'post_to_third_party_Apptivo', 10, 2 );
function post_to_third_party_Apptivo( $entry, $form ) {
 
    $post_url = 'APPTIVO_API_URL';
	$apiKey = 'APPTIVO_API_KEY';
	$accessKey = 'APPTIVO_ACCESS_KEY';
    $body = array(
        'lastName' => rgar( $entry, '8' ),
        'phoneNumber' => rgar( $entry, '5' ),
		'emailAddress' => rgar( $entry, '3' ),
		'referredByName' => 'flooringbrokers.ca',
		'leadStatus' => 'New',
        'Description' => rgar( $entry, '6' ),
        );
    GFCommon::log_debug( 'gform_after_submission: body => ' . print_r( $body, true ) );
 
	$params = array(
		"a" => "save" ,
		"leadData" => $body ,
		"apiKey" => APPTIVO_API_KEY ,
		"accessKey" => APPTIVO_ACCESS_KEY
		);
    $request = new WP_Http();
    $response = $request->post( $post_url, $params );
	
    GFCommon::log_debug( 'gform_after_submission: response => ' . print_r( $response, true ) );
}

?>

Open in new window

0
I want to override a Class Method in Wordpress.  Here is the class and Method
if( !class_exists( 'Woo_Os_Public' ) ) { // If class not exist
	class Woo_Os_Public {

public function add_hooks() {
			
			// checkout process
			add_action( 'woocommerce_checkout_process', array( $this, 'woo_os_checkout_field_process' ) );

}
}
}

Open in new window


I want to override add_hooks

Here is what I have:
if (!class_exists('Woo_Os_Public')) { // If class not exist

    class Wizard_class extends Woo_Os_Public {

        public function add_hooks() {
// add custom fields to checkout page
            add_action('woocommerce_checkout_after_customer_details', array($this, 'woo_os_checkout_fields'));
        }

    }

}
$wizard_public = Woo_Os_Public();
$wizard_public->wizard = new Wizard_class;

Open in new window


I receive an error: Fatal error: Class 'Woo_Os_Public' not found in wp-content/plugins/nda/nda-plugin.php on line 31
Line 31 is: class Wizard_class extends Woo_Os_Public {
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.