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

Hey Experts,

I'm trying to solve a minor problem on our websites locations map  

If you are on the location page, and scroll down, and click on any of the locations, the page will scroll up to the map, and show an infobox of the location. The only problem is that does not scroll all the way to the top, thus cutting off the top of the infobox.  I'm not sure where to start with this, is it a css problem, JS problem?

Could somebody help me fix this, please?

Thank you
0
I have a wordpress mutisite and I was able to reset the user password in the db but it doesn't seem to be the same for the sub-site? Is this in a different location? I cannot load the reset password page.
0
Hello,

I have a wordpress multisite and now all of a sudden one of the sites are not loading http://philly.phillyrentalco.com/ . Is there a log or something I can look into? Thanks
0
Just Moved my wordpress site to IIS10 with latest version of php. It works for a while after which it gives a weird error. And then I would need to restart the server for it to work.

Error from the windows error log.

Faulting application name: php-cgi.exe, version: 7.2.2.0, time stamp: 0x5a7219e5
Faulting module name: ucrtbase.dll, version: 10.0.14393.2097, time stamp: 0x5a820a13
Exception code: 0xc0000005
Fault offset: 0x000000000001f344
Faulting process id: 0x1074
Faulting application start time: 0x01d3eb881c85e262
Faulting application path: C:\Program Files\PHP\v7.2\php-cgi.exe
Faulting module path: C:\Windows\System32\ucrtbase.dll
Report Id: a805c7d4-4b03-4a18-ae4e-af14a5eed2f9
Faulting package full name:
Faulting package-relative application ID:

Any idea how to fix.

Thanks
Manoj
0
By mistake I moved  my web page folder (check black marked text ) by trying to open it under cashe folder. And I did not notice it. So i could not understand why my web page was not working any more. But still i did something wrong then when I was trying to repair the problem. Now  I am getting next error.
Can you help me to repair this?


Forbidden
You don't have permission to access / on this server.
Server unable to read htaccess file, denying access to be safe

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

path1.jpg
0
Regarding Joomla: Before I install & start playing with Joomla, can anyone recommend some reading (online or book) for someone who wants to learn JOOMLA who already knows Wordpress, PHP coding, MVC Framework, Web Apps, Linux command line, Servers, etc?
(I've never used Joomla, but a quick look over the Joomla books on Amazon didn't pop out any "Quick Start Joomla" type books that I could tell)
0
Cannot access FTP Server (Win2016Std) from Internal.  (or from outside, when used with WordPress as a client)

FTP Server (10.0.5.15) and IIS on same server behind firewall (TMG 2010). Configured publishing rule to forward External IP (X.X,X,X) to Internal (10.0.5.15)

All firewall rules are configured. Can connect from outside by FTP client (PASV) - no problems! Do not really need to connect from LAN, but

THE PROBLEM IS:

WORPRESS SITE requires FTP Server setup on WEB Server to upload Updates from WEB Site.

When I try to ftp from WordPress it sends internal IP of the WEB Site as a client IP (10.0.5.15) not the Client IP of the Browser machine.
So, TMG does not allow internal to external loopback...

Any solution?
0
Hello, I just created a Wordpress site on go daddy servers, I need to set up an SSL certificate. I just contacted go daddy and made the upgrade but they are telling me now I need to install an add-on in word press to ensure the visitors to properly connect using the certificate I understand there are a lot of add-ons to complete this does anyone have any suggestions of a good one possibly free and if I should have any other concerns
0
I'm currently working on customizing a WordPress site that has child theme activated, and I have these 2 different JavaScripts that are being injected into the footer:

<script type='text/javascript' src='https://royalpalm.com/wp-content/themes/houzez/js/houzez_ajax_calls.js?ver=1.5.7.3'></script>
<script type='text/javascript' src='https://royalpalm.com/wp-content/themes/houzez/js/custom.js?ver=1.5.7.3'></script>

Open in new window


To clarify .. these 2 lines of JavaScript are NOT hardcoded into the child theme's footer.php file .. they're being injected into the footer programatically via the wp_footer() method.

How would I go about properly de-registering these 2 JavaScripts, .. and enqueuing my own JS files that I've copied over to my child theme -- WITHOUT applying any changes directly to the parent theme files?  

More specifically .. I'd like to replace the 2 lines of JavaScript (above) with these 2 lines below (ie: note the different "houzez-child" theme folder name):

<script type='text/javascript' src='https://royalpalm.com/wp-content/themes/houzez-child/js/houzez_ajax_calls.js?ver=1.5.7.3'></script>
<script type='text/javascript' src='https://royalpalm.com/wp-content/themes/houzez-child/js/custom.js?ver=1.5.7.3'></script>

Open in new window


It's my understanding is that this can be accomplished by adding some code to my child theme's functions.php file, .. but so far I haven't been able to figure out the proper way to do it.  Please advise.

Thanks,
- Yvan
0
Hi,

How do I enable LDAP over SSL for my windows 2016 server.
I have Wordpress running on Windows server 2016, IIS10, And I got the LDAP to work, now I need to make it work over ssl. how can I do this.

Thanks
Manoj
0
How do I display an Office365 calendar on a wordpress webpage
0
Moving site from xampp to IIS, currently copied everything and have set it up locally pointing to the same database.

I cannot get to the backend (wp-admin) of wordpress, Not sure why, I even tried removing all the plugin still the same thing.
0
On my Bluehost shared server, I see folders that I think can probably be deleted. Examples are:

/public_html/old_public
/public_html/images-not-working-install

Which I think are left over from the migration they did from Godaddy.

Also, in my dev directory, dev.mysite.com, I see

/public_html/dev.mysite.com/old_dev
/public_html/dev.mysite.com/dev-from-april2018

and finally I see:
/public_html/intranet as well as
/public_html/intranet.mysite.com

I think one of those could go. So two part question: 1. Do you think I could safely delete those folders (after finding out for sure which one holds the actual intranet files)?
2. Would it make a difference to the performance of the sites that are on the shared server?

We're on the Business Pro cloud plan. We're running wordpress on all these sites.
0
I found some old code in functions.php which creates a shortcode for future events.  I'd like an option in the shortcode to include the excerpt (and if not there, a portion of the content). How do I add that?

add_shortcode('upcoming_events','upcoming_events');
function upcoming_events($atts){
    $ret = '';
    //wp_query get upcoming events list titles.
    $args = array(

        'post_type' => 'events',

        'posts_per_page' => 6,

        'post_status' => 'future',

        'order' => 'asc'

    );

    $the_query = new WP_Query( $args );

    if($the_query->have_posts()){

        $ret .= '<section class="widget widget_text"><div class="widget-wrap"><div class="textwidget">';

        while ($the_query->have_posts()){

            $the_query->the_post();

            $ret .= '<span>'.get_the_date('m/d/Y').' - <a href="'.get_the_permalink().'">'.get_the_title().'</a><hr/>';

        }

        $ret .= '</div></div></section>';

    }

    wp_reset_postdata();

    return $ret;

Open in new window

0
How do I add a Try/ Catch to my WordPress Functions?

I'm trying to learn more and would like to add Try / Catch to my functions.  The functions do a process in bulk.
try{} catch(){} block,

class theleatherguy_bulk_cancel_inventory_restore {

    function __construct() {
        add_filter('bulk_actions-edit-shop_order', array($this, 'theleatherguy_register_bulk_action')); // edit-shop_order is the screen ID of the orders page
        add_action('admin_action_mark_cancel_order', array($this, 'theleatherguy_bulk_restore_order_stock'), 10, 1); // admin_action_{action name}
        add_action('admin_notices', array($this, 'theleatherguy_bulk_status_notices'));
    }

    public function theleatherguy_register_bulk_action($bulk_actions) {
        $bulk_actions['mark_cancel_order'] = 'Mark Cancel Order'; // <option value="mark_cancel_order">Bulk Cancel Order</option>
        return $bulk_actions;
    }

    public function theleatherguy_bulk_restore_order_stock() {
        // if an array with order IDs is not presented, exit the function
        if (!isset($_REQUEST['post']) && !is_array($_REQUEST['post']))
            return;

        foreach ($_REQUEST['post'] as $order_id) {

            $order = new WC_Order($order_id);

            $order_note = 'This order was part of a Bulk Cancel Process: ';
            $order = new WC_Order($order_id);
            $order->update_status('cancelled', $order_note, true);
        }

        $location = add_query_arg(array(
       

Open in new window

0
CSS is all messed up on site https://mediastreet.ie/media-news/

Every other page looks fine as in the NAV Bar looks fine, i dont know whats happened?

Can anyone help out?
0
Wordpress I moved my site from Xampp to IIS 10, currently running the server copy as a local version for test it, but my images are not loading. and when I login the redirect back to the page not working as well any idea how to fix this.
0
Hi guys,

I have been trying to remove an ad from a site we manage but i cant find it anywhere in the code, its like its being inserted from Google.

It shows in IE certain times and it shows on Firefox the odd time, it wont show on Chrome for me as i am using DuckDuckgo extension

but it is showing here on IE

http://mediastreet.ie/directory/en/businesses/irs-independent-radio-sales-ltd

i really want to remove it
hyundai-ad.PNG
0
Hi Experts,

I have the following table
<table class="tblCases">
<thead>
<tr">
<td style="text-align: center;">Dispatch &amp; Back Office Application</td>
<td style="text-align: center;">Integrated E-Commerce</td>
<td style="text-align: center;">Inventory &amp; Financial System</td>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;" class="tdSectionHead"> Problem</td>
<td style="text-align: center;" class="tdSectionHead">Problem</td>
<td style="text-align: center;" class="tdSectionHead">Problem</td>
</tr>
<tr>
<td style="text-align: center;">Company offering different tours, with multiple of drop-off and pick-up locations used numerous of Excel files and paper records needed a software system to help streamline their processes.</td>
<td style="text-align: center;">Online company selling under different brands and prices could not adjust prices, promotions without the assistance of a programmer, and sales were only tracked via email.</td>
<td style="text-align: center;">Produce Importer relied on Excel files, manually adjusting formulas to track inventory of perishable goods imported by daily flights.</td>
</tr>
<tr>
<td style="text-align: center;" class="tdSectionHead">Solution</td>
<td style="text-align: center;" class="tdSectionHead">Solution</td>
<td style="text-align: center;" class="tdSectionHead">Solution</td>
</tr>
<tr>
<td style="text-align: center;">We created a web-based solution tracking pickups, drop-offs, passenger manifests, process 

Open in new window

0
I am looking at setting up WordPress as a multisite and see there is an option to setup as a sub-domain or sub-directory. Also, I need to have separate WooCommerce shops for each subdomain/subdirectory?

I was hoping to be able to access new sites via

site1.mywebsite.com or www.mywebsite.com/site1 or mywebsite.com/site1

site2.mywebsite.com or www.mywebsite.com/site2 or mywebsite.com/site2

Should I select the sub-directory option in multi-site setup and use .htaccess to redirect site1.mywebsite.com to www.mywebsite.com/site1

If so what would I code in .htaccess ?
0
Script on site, is saying expired

Guys,

How can i change the time on the site up until Thursday it was a countdown timer for a week, i was wondering how do i change it here on https://bodyfirstpreppd.ie
0
Running WordPress site on IIS 10 from localhost using actual host-name simultaneously with the real site.

I have a site running on Apache ("site.com", ip: IP1) connecting to database ( DB1)

I am planing to move the site from apache to IIS10, I already moved the files.
Can I have a URL ("site.com", looking at localhost not going through internet) connecting to the same database ( DB1)

So that I can make sure its working before connecting the real IP. Not sure if this makes sense.

Thanks
Manoj
0
I am trying to move a local WordPress site to a GoDaddy MySQL server.

Local Server version: 5.7.19 - MySQL Community Server (GPL)

GoDaddy version: 5.5

When I try to import the SQL I am getting this error on GoDaddy's PhpMyAdmin:



Can anyone help me out?

Thank you!
0
Hello Experts,

Noob wordpress user here. I'm trying to verify my domain name with G-Suites, I need to copy the meta tag and paste it on the home page, how do I do that in wordpress? I tried the following:

Go to tools> available tools > Scroll to website verification services. Now here the problem I don't see website verification services. Attached is what I get when I click on available tools.
Available-tools.png
0
Currently the way I am adding custom urls in wordpress is

functions.php
function custom_rewrite_rule() {

    add_rewrite_rule('^custompage/([^/]*)/([^/]*)/?','index.php?page_id=1933&param1=$matches[1]&param2=$matches[2]','top');

}
add_action('init', 'custom_rewrite_rule', 10, 0);
add_filter('query_vars', function($vars) {
    $vars[] = "param1";
    $vars[] = "param2";
    return $vars;
});

Open in new window


If I want to have multiple custom urls, I find I have to do the same thing twice like
functions.php
function custom_rewrite_rule() {

    add_rewrite_rule('^custompage/([^/]*)/([^/]*)/?','index.php?page_id=1933&param1=$matches[1]&param2=$matches[2]','top');

}
add_action('init', 'custom_rewrite_rule', 10, 0);
add_filter('query_vars', function($vars) {
    $vars[] = "param1";
    $vars[] = "param2";
    return $vars;
});
// short code to generate data for mysite.com/custompage/


function custom_rewrite_rule_two() {

    add_rewrite_rule('^new_custompage/([^/]*)/?','index.php?page_id=2034&param1=$matches[1]','top');

}
add_action('init', 'custom_rewrite_rule_two', 10, 0);
add_filter('query_vars', function($vars) {
    $vars[] = "param1";
    return $vars;
});

// short code to generate data for mysite.com/new_custompage/

Open in new window


That works, how can I do this in just one function for adding custom urls

function custom_rewrite_rule() {

    add_rewrite_rule('^custompage/([^/]*)/([^/]*)/?','index.php?page_id=1933&param1=$matches[1]&param2=$matches[2]','top');
    add_rewrite_rule('^new_custompage/([^/]*)/?','index.php?page_id=2034&param3=$matches[3]','top');

}
add_action('init', 'custom_rewrite_rule', 10, 0);
add_filter('query_vars', function($vars) {
    $vars[] = "param1";
    $vars[] = "param2";
    $vars[] = "param3";
    return $vars;
});

Open in new window


I have tried different combinations and can't seem to make this fully functional.
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.