DannyWeeks
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Website Data] How to set data through PHPSorry I can’t replicate your problem. I have a clean install of WP 3.9.1 and installed Custom Field Suit & Linked Data From another DB then CWD and didn’t have any problems with CWD. I did have an issue with Linked Data From another DB with it using short php tags.
Forum: Plugins
In reply to: [Custom Website Data] Members able to manage their own recordsUnfortunately this is beyond the scope of what I want the plugin to archive. Sorry
Forum: Plugins
In reply to: [Custom Website Data] Multi-line dataYour suggestions have been noted. Any other problems just let me know. Thanks
Forum: Plugins
In reply to: [Custom Website Data] Multi-line dataHi billseymour,
Sorry for the delayed reply.
All HTML is stripped to avoid XSS but there are a few ways you could achieve what you want.
The first way is to have multiple records for each line
[cwd ref="address-line-1"] <br> [cwd ref="address-line-2"]
The second way is to store your address as an array and loop through it adding the
after each element.Your record would be added like:
https://imgur.com/OXN0BjW<?php foreach(cwd_getThe('address') as $key => $line): ?> <?php echo $line ?><br> <?php endforeach;?>
I will look into allowing certain markup to be stored in a future update.
Hope this reply isn’t too late.
Danny
Forum: Plugins
In reply to: [Multiple Featured Images] Display featured images only on certain pagesAre you trying to only show the option to add/remove a featured image or just only display the featured image on that particular ID?
Forum: Plugins
In reply to: [Multiple Featured Images] Display featured images only on certain pagesYou are best to use an if statement. Try to avoid hard coding ids etc but this should solve your issue.
page-template.php
<?php if(get_the_ID() == 36 && class_exists( 'kdMultipleFeaturedImages' )):?> <div class="img-wrap"> kd_mfi_the_featured_image( 'featured-image-2', 'post', 'full' ); </div> <?php endif;?>
Forum: Fixing WordPress
In reply to: Parse error: syntax error, unexpected 'Have you added anything to that line or the line above. It’s likely a small syntax error
Forum: Reviews
In reply to: [Custom Website Data] Great, very useful and great supportThe new version (1.2) should now achieve this by use of the
cwd_updateThe($reference, $data)
function.Forum: Plugins
In reply to: [Custom Website Data] How to set data through PHPHi nigalo,
The plugin has been tested and updated. It is available for you to update in your plugin menu. You won’t lose any of your custom data when updating.
I have fully documented the change in the user guide which you can get to from the dashboard of the plugin. But here is a quick guide to the new addition.
The new function that has been added is
cwd_updateThe($reference, $data)
.$reference
is the ‘ref’ of the record you want to update and$data
is the new data you want to add to the record. The $data can either be a string, numeric or an array.You can use this function anywhere in your template, the function will return true or false depending on whether it is successful or not.
I am marking this issue as resolved now. If you could reconsider your review in light of the 1.2 update that would be great.
If you have any other suggestions or queries please don’t hesitate to get in touch!
Thank for your suggestion, I hope this helps.
Danny
Forum: Plugins
In reply to: [Custom Website Data] How to set data through PHPHi nirgalo,
I will add this feature in over the next day or two.
Thanks
Danny