Lolley
Forum Replies Created
-
Forum: Plugins
In reply to: [Visual Form Builder] Security check: referal does not match this site.I could certainly do with an answer from the plugin authors as having a similar issue on a client’s site… and they are very unhappy about these errors that persist in appearing when their site is particularly busy.
Forum: Plugins
In reply to: [WP eCommerce] Quick Edit Field Values Not WorkingBrilliant! Thank you very much!
Forum: Plugins
In reply to: [WP eCommerce] Quick Edit Field Values Not Working@misulicus Do you have an idea on the time frame for the update? It’s driving me crazy that I can’t use quick edit!
Forum: Plugins
In reply to: [Custom Post Type UI] Stay in category navigationOkay, that sounds like a sensible move! I’ll give it a go!
Thank you
Forum: Plugins
In reply to: [Custom Post Type UI] Stay in category navigationYup! If I switch off CPT and just work within posts and their categories it works just fine.
Forum: Themes and Templates
In reply to: [Fukasawa] Can front page posts show randomly?I simply added it to the bottom of functions.php, just before the closing tag, like this:
//Randomise posts on front page add_action('pre_get_posts', 'my_pre_get_posts'); function my_pre_get_posts($query) { if ( $query->is_home() && $query->is_main_query() ) { $query->set('orderby', 'rand'); } } ?>
If you are using a child theme (the better way tbh) then create a new functions.php in the child’s directory and add the code between php tags.
Now there is one thing I should point out! Since this calls random posts you can get repetition of posts between pages of posts. When I move to the next page of posts I can see one or two that were on the first page! It doesn’t matter that much, but just so you are aware!
Forum: Themes and Templates
In reply to: [Fukasawa] Can front page posts show randomly?There isn’t much response in this forum.
Fortunately, I was able to work out the solution by going elsewhere.
Add this to the functions file to randomise posts:
//Randomise posts on front page add_action('pre_get_posts', 'my_pre_get_posts'); function my_pre_get_posts($query) { if ( $query->is_home() && $query->is_main_query() ) { $query->set('orderby', 'rand'); }
Forum: Themes and Templates
In reply to: How to centre a sliderIgnore me! I found the alignment button!
Forum: Fixing WordPress
In reply to: How do I add a custom field to a sidebar?Correct! I wasn’t! I have to open the image in the browser and copy the URL there rather than using the permalink.
Yippee! It works. Thank you very much for your help.
I have one other question: If I wanted two images in the sidebar, how would I handle that?
??
Forum: Fixing WordPress
In reply to: How do I add a custom field to a sidebar?Aha! So I’ve done that, created a custom field on my page named pageImage and given it the value of the URL of one of my images in the media file and this gives me an image icon where I’d like my image to be… how would I get an image to show?
Forum: Fixing WordPress
In reply to: How do I add a custom field to a sidebar?Thank you, but would you mind holding my virtual hand as I don’t know what to do with the code to check that the custom field is set or output it into an html img tag!
Forum: Plugins
In reply to: [WP Booking Calendar] Number of months visibleGreat! Thank you!
Yes, I’ve got that enabled, but I’m definitely doing something wrong!
If I group say 10th to 17th August and then 17th to 24th August I’m not able to book either week…
Here’s a link so you can see the page:
Okay, I found the reset button which does this! ??
I definitely will. I have another question, but will make a new post…