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.


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

Filters should return, not echo. function my_content( $content ) { // Something something $content = 'my content'; return $content; } add_filter( 'the_content', 'my_content' ); You can echo, but you'll need output buffering, like this: function my_content( $content ) { // Something something ob_start(); echo 'my content'; ...


2

You need to add the following code to content-page.php in your theme folder. <?php the_author(); ?>


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

I vote for having two separate pages since this gives you all the power of permalinks that go directly to a specific video. That's much better for you and your visitors since the content can be more easily shared. From the codes perspective, you can apply DRY principles and still use a single-video.php and archive-video.php template. Have a look at the ...


1

If I have understood correctly you should be able to edit your page template to include the below. I'm not sure on any plugin to do this though. More info: https://codex.wordpress.org/Function_Reference/get_the_author <?php $author = get_the_author(); echo "$author"; ?> ** This is untested



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