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
- Front end post editing using a form
- How to list custom taxonomy categories?
- How to intercept publish post for a custom post type “event”
- clients list using wordpress
- How do I add media to a custom post type?
- Custom Post Type – Archive page title
- How to display Custom Taxonomy of Custom post type
- associate custom post type with tags with specific pages
- how to alter args of a custom post type
- Display only custom post type count for current author on the “At a Glance” dashboard widget
- Help with CPT template pagination
- Dynamically add / duplicate custom meta in custom post types
- Comprehensively Restrict Post Type Taxonomy to Logged-in Users
- Order By Post Type ThenBy Taxonomy
- Query/list all terms and their custom post count
- How can I make a custom post type sticky?
- Custom Post Type Dynamically Updates other Custom Post Type
- Get Taxonomy Term Title by it’s URL
- Number of Custom Post Types published are not being shown in the custom page
- Post Type rewrite rule to point to custom Page/template
- Post author for revision not being set on update/insert
- How to add multiple markers on the google map, at a certain meta_key and meta_value
- Optimise WP custom post type query
- Custom Post Type with Custom Taxonomy as Category
- Is it possible to use array_walk() to append terms to an array of posts?
- Trying to write shortcode with get_post_meta but isn’t working
- Custom post class, generate unique id from 1 to x depending on amount of posts?
- How to remove /blog/ prefix for custom post types in permalinks?
- Create an user checklist system for a course plateform using ACF Pro and ACF Extended
- Create custom post type inside other post type
- How to add specific terms in a custom post type?
- How get list of job types of simple job board plugin from code?
- Changing permalink of default Post with custom post
- get_queried_object not work in taxonomy page
- Post Click Redirect to Custom URL instead of Single Post Page
- Attempting to create custom “post” template, getting a 500 internal server error
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Updated from 3.8 to 4.2 and all post types changed to “post”
- Popup panel is only displaying 1 entry ignoring all others
- Custom post type single display is ommited
- Fetch post meta in the same query as the main loop
- Archive.php is not displaying tags
- Include Custom Post Type Archive in wp_list_pages
- How to save an integer as taxonomy term?
- Get all custom_post_type posts + blog posts from one category in a single query
- How is get_the_author connected to a custom post type?
- add_filter > posts_where works partially
- Modify permalink of CPT archive to support two taxonomies