Tagged: 

Viewing 3 reply threads
  • Author
    Posts
    • #2848
      fencer04
      Member

      I cannot see the widget in the admin. I have placed the following two files in theme-folder/piklist/parts/widgets directory.

      news.php

      <?php
      /*
      Title: News Display Widget
      Description: Display the news custom post type in a widget area.
      */
      
      <?php echo $before_widget; ?>
       
      <?php echo $before_title; ?>
       
      <?php echo $after_title; ?>
       
      <?php echo $after_widget; ?>
      ?>

      news-form.php

      <?php
      piklist('field', array(
        'type' => 'text'
        ,'field' => 'demo_text'
        ,'label' => 'Title'
        ,'description' => 'Field Description'
        ,'value' => 'Default text'
        ,'attributes' => array(
          'class' => 'text'
        )
      ));
      ?>
    • #2849
      Steve
      Keymaster

      @fencer04– Welcome to our community!

      Your news.php file has some mixed up php tags. Try this:

      
      

      Remember, Piklist rolls up all your widgets under the plugin/theme name. So look for ‘Theme Name Widgets’ in the widget admin.

    • #2850
      fencer04
      Member

      I wasn’t aware that it didn’t display the name of the widget in the widget area. That’s where it was hiding. I also should have noticed the PHP tag issue.

      Thanks for the help. This can be marked resolved.

    • #2851
      Steve
      Keymaster

      @fencer04– Since Widgets are so easy to build with Piklist, our users are building tons of them. Piklist groups them together by theme/plugin/add-on to make the widget admin manageable.

      Glad it’s working for you!

Viewing 3 reply threads
  • The topic ‘Can't see widget in admin’ is closed to new replies.