You dont have to make a post type Contact.Just make a dynamic sidebar in the Widget area of WordPress.And take the Text Widget in that Dynamic Sidebar , Copy your html and Paste it there in the Dynamic Widget Area you make. If you are not able to make the Dynamc sidebar Paste ths code in you functon.php
register_sidebar( array(
'name' => __( 'contact_sidebar', 'twentythirteen' ),
'id' => 'sidebar-4',
'description' => __( 'Appears on posts and pages in the sidebar.', 'twentythirteen' ),
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h2>',
'after_title' => '</h2>',
) );
Then call it on your footer.php by
<?php dynamic_sidebar('sidebar-4');?>
Related Posts:
- Where to put my code: plugin or functions.php?
- Custom Post Type Data in Sidebar widgets?
- Including Custom Post Types in “Recent Posts” Widget
- Limit widget to a specific registered sidebar
- Include custom post types in categories widget
- Including a custom post type in the Archives widget
- How to embed form data within the ‘Add new post’
- Add custom post types stats to a custom dashboard widget
- How to create another version of the Category widget?
- ‘Pages’ widget alternative for custom post types?
- Including Custom Post Type posts in a page template contextually (or should I widget?)
- right_now_content_table_end function not working?
- Custom Post Type Loop throws 500 error when used in widget
- How to create Blog Post Specific Widget
- Custom page sidebar using Template dropdown box
- Random image from tag/custom type on sidebar
- Register widget only page is a singular of custom post type
- Widget: Custom Post Type Post Listing Dropdown on Admin Side
- Display Custom Toxonomy In WordPress and theme Widgets category selection dropdown list
- Custom Widget WP_Query problem
- Hide a widget inside a div on specific type of post
- Filter widget outputs
- Set Custom Post Type in Widget Settings for use in Widget
- Want to be able to sign up subscribers as authors
- the_post_thumbnail call removing li in code
- how to set a WP Plugin’s url
- Why isn’t a list of posts from my custom post type displaying in this widget?
- How to get dropdown instance value in WordPress custom Widget
- Post Query not working
- Methods for development wordpress themes [closed]
- Truncate custom post type content
- How to exclude categories from a sidebar with active widgets in it?
- Replace Content of Sidebar on Custom Post Type
- Custom Page Template – Widgets of wrong sidebar
- Widget area for individual posts (custom post type)?
- How do I get the posts from single page custom post type from a sidebar to display in a page?
- I want to link an author to everything from any post type that they publish on the website
- retrieve custom post image through widget
- Custom post type not being pulled in widget
- Custom post types archive
- multiple custom post type category selection search
- how to override menu widget?
- Displaying database table in backend of wordpress
- Filter CPT based on meta box value using Flexible Posts widget?
- Creating Multiple Admin Widget Page with Calling One Sidebar
- fetch meta fields inside a widget
- Radom post image/link based on custom taxonomy
- empty dashboard for custom role
- Code in custom widget queries all posts, when it should only query the current post
- How to add post type in masonry posts elementory widget
- Post_type doesn’t work for widgets?
- How to display custom message for (Genesis) featured posts if no posts
- Create side bar widget showing list of years as hyperlinks for a custom post type
- Custom Post Type posts not getting picked up in archive widgets
- Using a custom widget to add data from a custom post type into the sidebar
- Review site custom post type structure
- don’t publish custom post type post if a meta data field isn’t valid
- How can I get this request to use the Custom Post Type page template instead?
- Include custom taxonomy term in search
- How to: wordpress job listing and candidates details
- Authenticating user for custom post type [closed]
- How to handle large number of images in a post?
- How does order=asc effect a wp_query (its acting pretty weird in a loop)
- Load scripts based on post type
- Filter get_cat_id for Custom Post Type
- How to set the seo title tag on a page by page basis?
- WebP Fallback for Inline Background Image in Style Attribute
- Global $post shows null in some of my custom post types archive pages
- 404 in custom post type feed with mistake permalink
- What functions does WordPress use for filtering / sanitizing comments?
- Paginate_links in custom post type template
- Can custom fields be added without a meta box?
- Show custom post type inside a custom post type
- Not getting posts of custom post types
- Warning after create Custom post type with Roots theme
- custom post type search by reference id
- pagination not working for category.php (custom post types in categories)
- Adavnced custom fields relationship query plus query inside
- Query based on custom fields start and end date
- Can’t publish custom post type – “You are not allowed to edit this post.”
- Only show posts with date of today or in the future (i.e don’t show past posts)?
- Create a permalink structure with custom taxonomies and custom post types gives 404
- Display and register custom categories for custom post types
- How to add multiple markers on the google map, at a certain meta_key and meta_value
- Save custom post type to external database
- wp_dropdown_pages doesn’t work with post_type argument
- How can i create an custom post template for an specific post category? [closed]
- Why is my WP_Query outputting my entries twice?
- Meta Box on Custom Post Type not saving
- How do I control the output of a custom post type in the loop?
- How to display Related Posts based on number of taxonomy terms matched
- Different Category system needed for the Custom Post Type
- Not Able To Render Single-CustomPostType.php File
- How do you get the full size url of an attachment image
- Display custom post type posts first, then default posts
- Custom post type posts don’t show in archive widget
- Custom Post Types in the WordPress Navigation Menu
- Custom Post Type Category Link
- Problems wp_insert_post and save_posts filter
- How to specify a template for a path like http://example.com/something?