Tagged: ,

Viewing 10 reply threads
  • Author
    • #312

      Hi guys,

      I’m so intrigued by Piklist, but I’m NOT a developer, per se. More of a power user transitioning to developer… so it’s particularly intriguing to me.

      Having said that, here’s what I’d like to accomplish right now, and I’m certain I can do it perfectly with Piklist, but I haven’t yet figured out how. If (or WHEN) I do, I’d love to write up a post about how I did.

      I have a multisite network of sites for a particular niche. Currently, the sites replicated for clients look and feel like the normal WP Dashboard on the backend, even though that’s not really what they need (it’s too complicated for most of them, and I need to move it forward by giving them some custom post types). Their types of custom posts also have a different “status” which Piklist would allow. It would be also be simpler for them if they could change and or move items in their sidebars without even accessing “Appearance>Widgets.”

      I’d like to offer them a Settings Page where they can just complete the information that would fill out their sidebars with the information/images/ads/widgets they need.

      Does that make sense yet? It’s a simple theme options panel, I suppose.

      From the tutorials and demos, I can see how to create individual widgets with Piklist, and Settings Pages. But, I don’t understand if I should be first creating a widget with Piklist that is then accessed somehow through the Settings page and then output to particular page templates… or if I can simply create fields for the Settings Pages and output those fields to the page template.

      And, I don’t understand through the documentation how to output what I create with the Piklist arrays.

      I AM good at following directions. If I’ve missed it in the tutorials or documentations, please feel free to send me to a particular point and I’ll go reread!

    • #313

      @ameeker– Good to hear from you. You can easily go either route with Piklist: Settings Page or Widgets. If you want your client to run the website from one place, a Settings Page seems like the best place.

      Wherever possible Piklist uses the standard WordPress functions, and that’s no different with Settings Pages. Once you create your Settings, you can retrieve them on the frontend with the get_option function. Piklist stores all options in a settings array, and get_option pulls the data. Then you grab the individual setting from that array. This tutorial should help, especially the last paragraph.

      Piklist Widgets are super easy. If you look in the /add-ons/piklist-demos/parts/widgets/ folder in the Piklist plugin, you’ll see four files for two widgets. You can open each to see how they work. This tutorial should help explain it.

      Also, in Piklist Settings in your WP admin you can turn on the Piklist Demos add-on to see how everything works. These demo widgets and settings will be activated.

      Let us know if you have any more questions.

    • #316


      I actually just found the last paragraph of that tutorial that mentions how to then get it into the theme as your email came through. That’s what I needed and didn’t see (thought clearly it’s there in the documentation!).

      Thanks! I’ll keep playing with it tonight.

    • #318

      Thanks – I was able to create the Settings panel and the demo fields for it, but I can’t get those fields to display in my template using the code in the last paragraph on this page: http://piklist.com/user-guide/tutorials/building-settings-pages/

      I can see when I click “save changes,” that the changes to the fields in the Settings are being saved.

      No matter what template I try to include it in, it doesn’t show.

    • #324


      Just to verify, are you using;

      $theme_options = get_option(‘YOUR-SETTING-NAME’);

      $text_field = $theme_options[‘YOUR-FIELD-NAME’];

    • #325

      Hi Steve,
      Thanks for the reply. I registered the settings page by copying and pasting the code in the tutorial, and then copied and pasted the full settings page for demo-settings.php and placed it in my theme folder under piklist/parts/settings/. I then copied and pasted the last paragraph at the bottom of the settings page tutorial into my single.php immediately prior to the loop (which at the time didn’t have that last echo statement in it).

      I didn’t actually change anything in any of those pieces of code, just copied/pasted all of it.

    • #326

      @ameeker– I added the echo statement so you can see a very basic way of using the settings.

      The Tutorial shows how to register settings, create fields and retrieve fields. What it doesn’t show it how you would use them.

      Can you give me an example of one of your settings, and how you plan on using it in your theme?

    • #327

      Thanks, Steve. Sure – each of the themes have (what is right now a widget area) used to display an image. So, of course, people who aren’t familiar with WordPress even have to learn enough to even know to go to Appearance/Widgets, and then to use the entire Widget interface, which is not hard we know… but if we could cut that out entirely, that would be better.

      One example of how we’d like to use this is to give them a field to either (preferably) upload an image that would then display in that area, or paste in the img html in a text box which would then display it.

      Or, allowing them to change the background colors of particular headings.

    • #328

      @ameeker– If you add this to your theme, does this work?

      $theme_options = get_option(‘piklist-theme’);
      $text_field = $theme_options[‘text’];

      echo ‘This is the image url: ‘ . $text_field;

    • #329

      Oh snap.

      That’s fantastic.

    • #330

      I never get tired of hearing that. 😉

Viewing 10 reply threads
  • You must be logged in to reply to this topic.