Daniel
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Custom Post Ajax paginationshame! the so called “wp experts” they don’t answer qns in wp website these days …so sorry mate!
Forum: Themes and Templates
In reply to: How to display custom post type's content in sidebarcoche
I had same problem today, i tried using some plugins and didnt find the right one. I wanted to display a contact form in a contact page widget only.To save my time i just write a template page for contact page, in which i called a different sidebar like so :
<?php get_sidebar('contact'); ?>
Then i went to functions.php file and write this:
`/***********************************************************************************************/
/* Add Sidebar Support */
/***********************************************************************************************/
if (function_exists(‘register_sidebar’)) {register_sidebar(
array(
‘name’ => __(‘Contact Sidebar’, ‘the-bootstrap’),
‘id’ => ‘contact’,
‘description’ => __(‘The contact Sidebar’, ‘the-bootstrap’),
‘before_widget’ => ‘<div class=”card” >’,
‘after_widget’ => ‘</div> <!– end footer-widget –>’,
‘before_title’ => ‘<h3 class=”card-heading simple”>’,
‘after_title’ => ‘</h3>’
)
);
}`After registering that sidebar, it appeared in the widgets area in admin… and i add my contact form easily .. check here http://sdatemeke.adroitplus.com/wasiliana-nasi/
Hope that helps
Forum: Themes and Templates
In reply to: How to display custom post type's content in sidebarhaving the same problem….think have to dive into codes and see what i can do.