Tag Info

Hot answers tagged

3

You are accessing your hosting server panel. There is no way you will find Appearance tab there. Go to this URL: http://yourdomain.com/wp-admin to access your WordPress Dashboard. You can view the Appearance section there.


3

If you want to add your own tags to WordPress pages use the wp_head action. To modify or remove <head> elements being added by Yoast you'll need to use the filters they provide. As documented in that link you can modify the page title, author, keywords and more.


3

Ok, lets break it down, all the links are going to be to the source code. wp_list_pages() only uses get_pages() to (sic!) get pages, walk_page_tree() does the hierarchical structuring inside it. The further course of the process goes Walker_Page - and the generic Walker of course -, unless a custom walker is used. Inside walk_page_tree() you will see, the ...


3

Ok my bad found the answer on the codex page but at the very bottom so I'm adding this here as well so if anyone like my didn't catch it on WordPress's codex, they can find it here :) Just use get_admin_page_title(); See the example 1 below: function register_my_custom_submenu_page() { add_submenu_page( 'tools.php', 'My Custom ...


2

Whenever you add a new item to WordPress Menu ( Appearance -> Menu ) it creates a new Post of Post Type nav_menu_item and gets assigned a post meta called _menu_item_object_id with the main Post ID. For example, if I create a page called "Home" it gets assigned a Post ID of 2. Now, when I go to Menus and add the page to a menu, WordPress creates a new ...


2

Try the code below. This is the Reference: WP_Query <?php $args = array( 'post_type' => 'page', 'posts_per_page' => 10, 'category_name' => 'mycat', 'fields' => 'ids' ); $data = get_posts($args); print_r($data);


1

It looks like problem is coming from any of installed plug in or your theme. Backup your database. Switch to default wordpress theme. If problem disappears, your theme is the culprit. If problem still exists, Deactivate all installed plugins. If problem disappears, activate plugins one by one and see which plugin causes the error. If problem still exists, ...


1

Another safer alternative to this problem is using get_queried_object() which holds the current queried object to get the page slug which is held by the post_name property. This can be used anywhere in your template. $post can be used, but it can be unreliable as any custom query or custom code can change the value of $post, so it should be avoided outside ...


1

There are many wordpress plugins which are not written correctly. Or some plugins are written for old version of wordpress. Please test your plugins. One of them might be causing the problem. Please refer the steps indicated by @karthik for detailed testing.


1

Use pagename instead of page_id to query by slug. Note that if a page is a child of another page, pagename has to be the full parent/child path to the page, since slugs only have to be unique per-level in hierarchical post types. See WP_Query for the full list of query vars.


1

Change Settings -> Permalinks to Post Name. Go to your page and edit the Permalink field below the title field.


1

I've modified your code a little to check that the post type is a page, that the current user can edit that page, verify the nonce and verify the inserting attachment functions. The resulting code is working. It seems that don't checking the post type could be the reason of the issue. Also, you don't need to manually include 'wp-admin/includes/image.php': ...


1

you can try a code like this <?php function theme_settings_init(){ register_setting( 'theme_settings', 'theme_settings' ); } ├« This is used to reserve a name for a custom settings array //Add settings to page menu function add_settings_page() { add_menu_page( __( 'Contenu ├ęditable' ), __( 'Contenu ├ęditable' ), 'manage_options', 'settings', ...


1

You can use get_post_field() for getting the post fields i.e. Title, Content etc. // Replace $post_id with the ID of your post/page <?php get_post_field( post_title, $post_id); get_post_field( post_content, $post_id); ?>



Only top voted, non community-wiki answers of a minimum length are eligible