Use of wp_insert_post and parameters

Check the docs at http://codex.wordpress.org/Function_Reference/wp_insert_post for the parameters to use with wp_insert_post This function inserts posts (and pages) in the database. It sanitizes variables, does some checks, fills in missing variables like date/time, etc. It takes an array as its argument and returns the post ID of the created post (or 0 if there is … Read more

How to change menu order item

You can’t order it through the wordpress Menu if you’re using a filter. The worpdress menu system gives you the option to add Categories just as you add pages. If you don’t see it, go to Appearance -> Menu and then go to Screen Options (top right of the page) and make sure the option … Read more

How to let users change site language?

There are two types of translations in the WordPress website: Label Translation in WordPress Core and Theme, for that gettext technique is useful (as mentioned by you .po and .mo files) Content Translations for that you will need to add multi-lingual plugin to handle such feature. Good Example of such plugin are: http://wordpress.org/plugins/qtranslate/ http://wordpress.org/plugins/multilingual-press/ More: … Read more

You do not have sufficient permissions to access this page while making a plugin

Try function crudindex(){ add_options_page(‘Crud Dashboard’, ‘Crudboard’, ‘manage_options’, ‘crud’, ‘crudboard’); add_options_page(NULL, ‘Crudboard’, ‘manage_options’, ‘create_crud’, ‘crudboard’); } and your anchor tag like <a class=”add_new-h2″ href=”https://wordpress.stackexchange.com/questions/137953/<?php bloginfo(“url’);?>/wp-admin/options-general.php?page=create_crud”>Add New</a>