Knowledgebase : WordPress

In case you WordPress admin and/or login pages got locked-in and the issue is not with plugins, double-check if if your domain is not using CloudFlare as proxy.

As of November 2016 CloudFlare changed its IPs. So, either exclude your admin/login pages from CloudFlare or add new CloudFlare IPs to your .htaccess

(IPv4)

allow from 199.27.128.0/21
allow from 173.245.48.0/20
allow from 103.21.244.0/22
allow from 103.22.200.0/22
allow from 103.31.4.0/22
allow from 141.101.64.0/18
allow from 108.162.192.0/18
allow from 190.93.240.0/20
allow from 188.114.96.0/20
allow from 197.234.240.0/22
allow from 198.41.128.0/17
allow from 162.158.0.0/15
allow from 104.16.0.0/12
allow from 172.64.0.0/13

(IPv6)
allow from 2400:cb00::/32
allow from 2405:8100::/32
allow from 2405:b500::/32
allow from 2606:4700::/32
allow from 2803:f800::/32
allow from 2c0f:f248::/32
allow from 2a06:98c0::/29

More in CloudFlare IPs: How do I whitelist CloudFlare's IPs in .htaccess?

How to prepare strings for translations in WordPress

Sample of non-translatable strings:

<div class="content">
<h1>Welcome to my site!</h1>
<p>I hope you'll like it.</p>
</div>

Change to:

<div class="content">
<h1><?php _e("Welcome to my site!"); ?></h1>
<p><?php _e("I hope you'll like it."); ?></p>
</div>

From

<?php next_posts_link('Older Entries') ?>

To

<?php next_posts_link(__('Older Entries')) ?>

 

Read also: http://codex.wordpress.org/I18n_for_WordPress_Developers#Marking_Strings_for_Translation

On multi page forms, the WPML plugin is causing the Previous and Next buttons to say "Array".

Locate the file wp-content/plugins/gravity-forms-multilingual/inc/gravity_forms_multilingual.class.php
Change the following two lines (line 165,166):
 

$form['fields'][$id]['nextButton']['text'] = icl_t('gravity_form', $form['id'] . '_field-' . $field['id'] . '-nextButton', $field['nextButton']);
$form['fields'][$id]['previousButton']['text'] = icl_t('gravity_form', $form['id'] . '_field-' . $field['id'] . '-previousButton', $field['previousButton']);

To:

$form['fields'][$id]['nextButton']['text'] = icl_t('gravity_form', $form['id'] . '_field-' . $field['id'] . '-nextButton', $field['nextButton']['text']);
$form['fields'][$id]['previousButton']['text'] = icl_t('gravity_form', $form['id'] . '_field-' . $field['id'] . '-previousButton', $field['previousButton']['text']);

Solution documented here

http://wpml.org/forums/topic/wpml-gravity-forms-conflict-previous-and-next-buttons-say-array/


NextGEN Gallery is a full integrated Image Gallery plugin for WordPress with dozens of options and features.


When writing a page/post, you can use the follow tags:

For a slideshow : [slideshow id=x w=width h=height]
Example : http://nextgen-gallery.com/slideshow/

For a album : [album id=x template=extend] or [album id=x template=compact]
Example : http://nextgen-gallery.com/album/

For a gallery : [nggallery id=x]
Example : http://nextgen-gallery.com/gallery-page/

For a single picture : [singlepic id=x w=width h=height mode=web20|watermark float=left|right]
Example : http://nextgen-gallery.com/singlepic/

For a image browser : [imagebrowser id=x]
Example : http://nextgen-gallery.com/image-browser/

To show image sorted by tags : [nggtags gallery=mytag,wordpress,... ]
Example : http://nextgen-gallery.com/gallery-tags/

To show tag albums : [nggtags album=mytag,wordpress,... ]
Example : http://nextgen-gallery.com/albumtags/

To show random mages : [random max=x ]

To show the most recent added mages : [recent max=x ]

Carousel
http://nextgen-gallery.com/templates/carousel/

A new tag since version 0.60
http://nextgen-gallery.com/image-browser/

NextGEN Monoslideshow is a addon plugin for NextGEN Gallery plugin and Monoslideshow flash slideshow.


To get NextGEN Gallery
http://wordpress.org/extend/plugins/nextgen-gallery/

To purchase monislideshow (commercial)
http://www.monoslideshow.com/

To get NextGEN Monoslideshow (free)
http://wordpress.org/extend/plugins/nextgen-monoslideshow/

WebCTO Tested the following FAQ plugins:

http://wp-answers.com/

http://wordpress.org/extend/plugins/q-and-a/

http://wordpress.org/extend/plugins/dynamic-faqs/

http://wordpress.org/extend/plugins/qa/

http://wordpress.org/extend/plugins/question-and-answer-forum/

 

WebCTO recommends

 http://tribulant.com/plugins/view/8/wordpress-faq-plugin 

 

Shortcode for Tribulant WordPress FAQ Plugin:

Groups List – this will display all the FAQ groups

[wpfaqgroups]
 

All Questions – display a list of all your questions

[wpfaqs order="DESC" orderby="modified"]
 

Search Box – a search box will be added on the post/page you insert this shortcode into

[wpfaqsearch menu=1 group_id=X]
 

Ask Box – an ask box will be added to the post/page you insert this into

[wpfaqask group_id=X]

 

Read more: http://docs.tribulant.com/wordpress-faq-plugin/508 

 

Managing tables in WordPress is not an easy task.

Try TinyMCE Advanced plugin and stop wasting time coding tables.

Enables the advanced features of TinyMCE, the WordPress WYSIWYG editor.
http://wordpress.org/extend/plugins/tinymce-advanced/

Connection lost error in WP admin usually is caused by the heartbeat ajax usage.

An article on fixing that
WordPress Heartbeat and heavy admin-ajax.php usage

Some useful WordPress plugins that may help you:

 

 

Managed by WebCTO