matfenton
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Problem with "MY – POST CYCLE" WidgetHi Arturo,
We’re just getting to grips with one of their templates – pretty and clever, but a nightmare to work out, and the support is minimal at best.By trial and error I *think* I have the solution:
Define the Custom Post Type you want to use (or edit an existing one if that’s easier).
Now you can create posts to that custom type and they should appear in the left hand menu of your admin window?Now you need to edit the widget in order to be able to see your new custom type in the drop-down box. (There may be a very simple way to do this without any code, but I can’t find it!).
FTP into your site and navigate to YOURSITE/includes/widgets/my-post-cycle-widget.php
Download / open this file in a text editor and scroll almost to the very bottom – you should see a line that reads:
<select id="<?php echo $this->get_field_id('category'); ?>" name="<?php echo $this->get_field_name('category'); ?>" style="width:150px;" >
Following this line are a list of options that define the drop-down list in the widget – add additional lines of code by copy / pasting one of the existing ones and edit the $category string to match your new custom post-type short name.
Save the file and browse back to your admin page, you should have the new options in the widget drop-down list.Not sure if that’s the *correct* way to do it, but it seems to work OK for me so far – hope it helps.