Osu
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Sites keep getting hackedThanks for the help, I’m going to need to do a lot of work to go through all 28 of my sites then by the sounds of things. I don’t suppose anyone can recommend a good shared host in the UK that has decent security in place (things like allowing FTP access for a specific amount of time, whitelisting certain IP’s etc.), as all I’m getting from Hostgator is a sales pitch to pay huge amounts of money for their Sitelock program…
Forum: Plugins
In reply to: [GDMylist] Custom Post type fieldHey there,
I found the answer (at least when using normal custom fields or, in my case, Advanced Custom Fields).
If you want to include custom fields, you need to modify the plugin file
gd-mylist-code.phpso that you can add your own ##tagName# for use in the plugins templates.I’ll try to explain so it’s understandable for someone else seeing this – instructions below on what to do.
——————————————————-
File: gd-mylist/gd-mylist-code.phpIn the
foreach ($posts as $post)loop, create variables for your custom fields (my example uses a soundcloud and gumroad link):$postACF_sc = get_post_meta($postId, 'sc_link', true); // Get soundcloud link $postACF_gumroad = get_post_meta($postId, 'gumroad_url', true); // Get Gumroad linkThen, add your own str_replace() functions below the line that says
$html = file_get_contents($templates_html['box_list'].$locale);i.e:
$html = str_replace('##postACF_sc##', $postACF_sc, $html); $html = str_replace('##postACF_gr##', $postACF_gumroad, $html);This will let you use
##postACF_sc##and##postACF_gr##in the plugin’s template files to show your custom fields.File: gd-mylist/template/box-list.php
I just chose this template file as an example, but you can add your new made tags to the HTML markup here to display them i.e.
<article class="gd-mylist-box audio-item"> ##postBtn## <h2>##postTitle##</h2> <a href="##postACF_sc##" class="sc-player audio-item--url">##postTitle## on SoundCloud</a> <a href="##postACF_gr##" class="audio-item--buy btn btn-green" data-product-url="##postACF_gr##">Buy</a> <a href="##postUrl##" class="view-track btn btn-blue">View track</a> </article>——————————————————-
That’s what is working for me, although I’m working through a different problem now!
Cheers,
Osu
Forum: Plugins
In reply to: [GDMylist] Custom Post type fieldI also need to know how to do this – I’m using Advanced Custom Fields to store a bunch of data related to a post and need to display some of those fields (these are basically custom fields) in my wish list.
Would it be possible to add something like this?
##postCustomFieldName##
Where ‘CustomFieldName’ returns the get_post_meta()?
Thanks for this great plugin by the way!
Osu
Forum: Plugins
In reply to: [Accordion Shortcode] Auto height based on content size is broken.I love you. Saved me a big headache with this, thank you!
Forum: Everything else WordPress
In reply to: Neatly displaying tagsThat’s great, thanks for those links, much appreciated!
Forum: Plugins
In reply to: [Easy WordPress Mailchimp Integration] Hide unused lists?I also need to restrict the lists available to just one – Remi, is that an easy fix? Could you let us know how it’s done please?
Thanks
Osu
Thanks Jason, I’ll continue my specific questions in your forum.
Sorry, I meant to say Debit card payments in the title (not Direct Debit which is different).
I think you’re totally entitled to charge for support – the plugin works well from what I can see so far and IS free to install and use. jstearn – if you’re using this for client sites, then costs like this should be built into your fee. What’s more, if $97 is more than what you or your client expect to make from a membership-website in a year, then I’d suggest a different approach to making money from your site.
@strangerstudios – thank you for making more of the documentation free.
Forum: Fixing WordPress
In reply to: functions.php will not work with child themeHi,
I’m trying to override the ‘read more’ link in my child-theme functions.php. I understand you can’t override the parent themes functions.php as such, but I have placed my own function for the ‘excerpt_more’ filter, but it’s not replacing the parent theme’s function that also uses ‘excerpt_more’.
Any ideas?
Thanks
Osu
function clientname_continue_reading_link() { return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'Read more... <span class="meta-nav">→</span>', 'clientname' ) . '</a>'; } function clientname_auto_excerpt_more( $more ) { return ' …' . clientname_continue_reading_link(); } add_filter( 'excerpt_more', 'clientname_auto_excerpt_more' );Hi Hiroaki,
That’s superb, thank you lots for that quick upgrade 🙂
mn
I’ve actually been talking to the developer directly and showed him that video, so he kindly looked into it for me – hopefully it sorts your problem as well!
Hi difreo,
Have you updated to the latest CFT? I’ve upgraded to 1.8.5 and it seems to have fixed my issue…
Oh really? Are there many problems with Custom Post Types and CFT then? That’s useful to know if that’s the problem as I may be able to work around that…
Yep, that’s all set correctly I think – comma-delimited and everything set up. I have the feeling it could be the CFT options I’ve set that are causing the problems.
Here are the options I’ve set (I’ve included all 7 CFT templates I’m using):
Can you see anything wrong in there?
Thanks,
osu