Adam Robertson
Forum Replies Created
-
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Default to Related Post in Drop DownIt works now. Thanks!
The links were going to a “Page not found” but it now goes to the actual page.Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Default to Related Post in Drop DownThanks for replying @keraweb but the link you posted is broken
Forum: Plugins
In reply to: [Post Type Switcher] Possible to restrict post types?I would also like to see this feature. An example is the Featured Image Column plugin. It has a basic settings page with a list of all post types and you check the ones you want it to work on.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Default to Related Post in Drop Downto answer my own question:
When editing the field under Pods Admin:
Advanced Tab
Default Value
put in the ID of whatever related post you want that to be.I would still like it better if I could make it default to whatever is at the top of the list (for example, if I have the list sorted by most recent, then the most recent one will be the default).
I just had a look through the code (which is actually pretty simple) and there is no server or connection information in any of the files. Meaning that it can only connect to whatever servers you put in.
Unless someone has hacked the files and altered the code, or hacked into your WordPress account and change the settings.
Forum: Plugins
In reply to: [Instruct] Divs instead of tablesSounds interesting Websnail. You could just use the code I have in the first post to change the tables to an
- ., and then possibly use something like Woothemes flexslider code (free download, opensource) to turn that list into a slide-show.
Lots of possibilites. I would love to see what you end up doing.
Forum: Plugins
In reply to: [Gravity Forms + Custom Post Types] Terms displayed as IDs, not Namedashaluna, thank you, that filter worked perfectly for what I needed: it displays the title rather than the ID in the Admin Entry.
Forum: Plugins
In reply to: [Instruct] Divs instead of tablesOkay, it was simple task to just change the short-code to use an ordered list rather than a table:
$step_template .= "<li class='instruct_row'><span class='instruct_row'>#STEP_TEXT#</span><span class='instruct_row'>#IMG_TEMPLATE#</span></span>"; $tbimg_template .= '<div id="instruct-thumbnail"><img class="instruct-thumbnail-img" src="#STEP_THUMBNAIL#" large="#STEP_PICTURE#"></div>'; //get instructions title and description $sql = "SELECT step.id step_id, <code>text</code>, number, picture, thumbnail FROM ".$diy_step_table." step, ".$diy_progress_table." progress WHERE step.id = progress.step AND progress.instruct=".$id." ORDER BY number"; $data = $wpdb->get_results($sql, OBJECT); if(count($data) > 0){ $html .= "<ol class='instruct'>"; foreach($data as $step) { // Go until no step exists with previous of current if($step == NULL) break; $step_html = $step_template; $step_html = str_replace("#STEP_NUM#", $step->number, $step_html); $step_html = str_replace("#STEP_TEXT#", $step->text, $step_html); if(!empty($step->thumbnail) and !empty($step->picture)) { $img_html = str_replace("#STEP_THUMBNAIL#", $step->thumbnail, $tbimg_template); $img_html = str_replace("#STEP_PICTURE#", $step->picture, $img_html); } elseif(empty($step->thumbnail) and !empty($step->picture)) { $img_html = str_replace("#STEP_THUMBNAIL#", $step->picture, $tbimg_template); $img_html = str_replace("#STEP_PICTURE#", $step->picture, $img_html); } elseif(!empty($step->thumbnail) and empty($step->picture)) { $img_html = str_replace("#STEP_THUMBNAIL#", $step->thumbnail, $tbimg_template); $img_html = str_replace("#STEP_PICTURE#", $step->thumbnail, $img_html); } else { $img_html = ''; } $step_html = str_replace("#IMG_TEMPLATE#", $img_html, $step_html); $query = $step_sql."=".$step->step_id; $html .= $step_html.PHP_EOL; } $html .= "</ol>";
I also removed the step-numbers, since CSS can handle that with:
ol.instruct li { list-style: decimal inside; padding: 5px;}
This gives me greater flexibility when designing my theme layout, especially if I am doing an adaptive theme for mobile or tablet view.
Now I am wondering if I could incorporate this into a “Projects” plugin I am working on. Just an idea I am toying with.
Forum: Reviews
In reply to: [Contact Data] Very nice plugin with lots of potentialGlad to hear that you are continuing development. It might become one of those plugins I cannot live without.
Try to avoid the temptation to add too many “Features”, which can bloat the plugin and make it difficult to work with.
Like you already wrote, this plugin is filling a need in WordPress that should be built in. It speaks for itself.
I have been watching the development of Pods for some time now. I plan to use it for many different types of projects. But to post one use-case:
A yoga instructor contacted me last year. She wanted to have the following sections on her website:
- Instructors
- Classes
- Locations
Then she wanted a “Schedules” section where she could “schedule” a class; giving it a time and day. Also, she wanted to be able to select from one of the CLASSES, and one of the INSTRUCTORS.
So basically, when creating a new schedule, there would be 4 drop-down menus:
choose a day
choose a Class
choose an Instructor
choose a Location
Then, on the front-end, a Schedule page, which would show a list of the days of the week, and display each class, its time, and the Instructor.Here it is in real-time: https://yogaloftsonora.com/schedules/
I really had to do some tweaking to get that to work. Had I known about Pods, I think I could have saved myself loads of time, since Pods could handle all of those relationships
Currently installing Pods on some experimental sites. I agree that the Gallery of sites using pods should have a summary of what people are doing with Pods.
Forum: Plugins
In reply to: [DynPicWaterMark] [Plugin: DynPicWaterMark] Dont workThanks David for leaving the link to your modified version of this plugin up. I have downloaded and am testing it now. So far so good.
Forum: Plugins
In reply to: [WP Customer Reviews] [Plugin: WP Customer Reviews] Custom post typesI also would be interested in being able to apply this plugin to a custom post type.
What would be the Bee’s Knees would be able to have a selection of the post-types you want this plugin to be used for. That way you could select if you want to use it in Posts, Pages or whatever other post type you want.
I may try to hack that feature in. If I am able to manage it I will post here.
I was having the same exact issue. After much trouble-shooting I found that the cause was extra space at the end of the functions.php file in my theme.
By deleting any white-space at the bottom of the functions.php file, I was able to make everything work as normal.I was also having an issue with this plugin adding <p> tags around different elements in a blog, such as the Title attribute and such. I fixed this by commenting out line 86 in the plugin like so(just add the two slashes in front of the line):
//add_filter(‘excerpt_save_pre’, ‘wpautop’);
I am not sure how you are using the Custom Post Type, but I had to hide Sexy Bookmarks and used this on the template page:
<?php if (have_posts()) : while (have_posts()) : the_post();
?><?php add_post_meta($post->ID, ‘Hide SexyBookmarks’,true); ?>