0%
Loading ...

Centralized post for WordPress development

Wordpress Setup Multisite Network Mode 0.jpg

Development

Add menu item

google ads placeholder

Shortcode

[shortcode param1='param 1 value' param2='param 2 value']

Read parameters:

function shortcode_function($atts)
{
echo $atts['param1']; //param 1 value will be displayed.
echo $atts['param2']; //param 2 value will be displayed.
}

Plugin Header

  • Example 1
    • /*
      Plugin Name:ย Shortcode demo
      Plugin URI:
      Description:ย Shortcode Demo
      Version: 1.0
      Author: Gabriel Magen
      Author URI: http://www.flash-jet.com
      License: GPLv2
      *

Databases

Object oriented plugin

Old

How to

Languages

  • Add a language
    • Go to HERE
    • Locate requested language
    • Click on “View team page
    • Click on “Download language pack
    • Upload the downloaded file to wp-contentlanguages
    • At wordpress admin panel, go to Settings->General
      • Select the required language

FTP access to install Theme or Plugin

  • Add to wp-config.php, after define(โ€˜DEBUGโ€™,off);, the following line:
    • define(โ€˜FS_METHODโ€™,โ€™directโ€™);
    • At the following picture FS_METHOD appears twice, the white is not legal and the yellow is legal.
  • Click on theย following videoย that demonstrates this.

WooCommerce

  • Install
    • Go to Woocommerce.com
    • Download plugin and install from there.

Plugins

Menus

Post editing

  • Elementor

Code management

  • Gitium

Code Editing / IDE

  • WpIde
  • AceIde

Others

Fix errors

  • Enable debug
    • In wp-config.php add
      • define( ‘WP_DEBUG’, true );
  • Enable plugins download
    • In wp-config.php add
      • define(‘FS_METHOD’, ‘direct’);
  • Error after changing to https
    • Settings->general->change to https
    • Admin page (wp-admin) is not accessible.
    • How to resolve?
      • Install a plugin called
        • Flexible SSL for CloudFlare
  • ย