Adding link to dashboard sidebar, nested under custom post type

This should do it. function register_additional_page(){ add_submenu_page(‘edit.php?post_type=tree’, ‘Bulk Process’, ‘Bulk Process’, ‘activate_plugins’, ‘tree_bulk_process’, ‘render_bulk_tree_process’); } add_action(‘admin_menu’, ‘register_additional_page’); And the function that renders the page. function render_voucher_list_page(){ ?> <h2>Hello World</h2> <?php } Change post_type=tree to your Custom Post Type, Bulk Process to the menu title, activate_plugins to your desired user capability, tree_bulk_process to your page ‘slug’ … Read more

Delete all Tag Links from Posts

1) For existing post content, you can add a filter to the_content to remove them from the output before they are seen by a user: function remove_tag_links( $content ) { return preg_replace( ‘#<a [^>]*\bhref=\\\?”[^”]+(?=/tag/)[^”]+\\\?”[^>]*>(.+?)</a>#si’, ‘$1’, $content ); } add_filter( ‘the_content’, ‘remove_tag_links’ ); 2) For new / updating content, you can add the same filter to … Read more

Automatic linking terms

The answer was right under my nose facepalm. In the custom field suite plugin, instead of entering ProductName-2000 : ProductName-2000 you enter <a href=”http://www.site.com/ProductName-2000/”>ProductName-2000</a> : ProductName-2000 I kinda wish i could delete this question… hope it helps someone else at least. 😛

Authors’ Links on Homepage Not Going to Author Post Pages

The code below is the correct code, in several different PHP files. Currently need to know how to write it using the the_author_posts_link(); <p class=”postAuthor”>By <a href=”https://wordpress.stackexchange.com/questions/74001/<?php the_author_meta(“user_url’); ?>”><?php the_author(); ?></a></p> Just replace this: <a href=”https://wordpress.stackexchange.com/questions/74001/<?php the_author_meta(“user_url’); ?>”><?php the_author(); ?></a> With this: <?php the_author_posts_link(); ?> Alternately, you could use this: <a href=”https://wordpress.stackexchange.com/questions/74001/<?php echo get_author_posts_url(get_the_author_meta(“ID’ )); … Read more

Main menu navigation links and new pages

Templates can all have unique code, and your template may or may not support Custom Menus. I would find out if you can add custom menus through your Appearance > Menus tab in the admin area. If you can’t, all new pages you add from the Pages tab will most likely end up in that … Read more

Blogroll/Lins Menu not visible in my backend?

From the codex: “As of Version 3.5, the Links Manger and blogroll are hidden for new installs and any existing WordPress installs that do not have any links. If you are upgrading from a previous version of WordPress with any active links, the Links Manager will continue to function as normal. If you would like … Read more

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