Development before domain name chosen

You can use the Search and Replace plugin to fix the URLs once the new domain is chosen. Likewise, plugins such as BackupBuddy (paid) or Duplicator (free) — which are very useful for backup, possibly coupled with migration to another server or domain — also perform this search-and-replace operation.

Separate Editing from Publishing for pages

For your authors you need to set accounts with a “contributor” role. A contributor can writ content but can’t publish it. Then create a user for your editor and give him an “editor” role and he will be able to publish the content the authors had written. The main problem you may run into is … Read more

Cannot add media to a page

The TypeError: wp.Uploader is undefined error is coming, because wp media editor file is not included. Please check for this.

How to use PHP code with wordpress page

The best way to create dynamic data outputs really depends on the what, why, and how. For example, if you’re creating a theme that creates its own custom post type, say, to store information about the head honchos that run the business behind the site, then just create a “single-$CPTNAME.php” template that has the code … Read more

Widget & storing a Select box choice

Here’s the working answer for future reference. <p> <label for=”<?php echo $this->get_field_id(‘select’); ?>”><?php _e(‘Choose A Page:’, ‘check_avail_widget’); ?></label> <select name=”<?php echo $this->get_field_name(‘select’); ?>” id=”<?php echo $this->get_field_id(‘select’); ?>” class=”widefat”> <option value=”Select A Page”> <?php echo esc_attr( __(‘Select A Page’) ); ?> </option> <?php $pages = get_pages(); foreach ($pages as $page) { echo ‘<option value=”‘.get_page_link($page->ID).'” id=”‘ . … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)