Warwick Booth
Forum Replies Created
-
Forum: Plugins
In reply to: [LSX Mega Menus] Block is inoperable and renders the plugin uselessHi @colorful-tones and @michaelbragg, thank you for the reports. I am looking at the bug, and will have an answer for you in the next few days.
Forum: Plugins
In reply to: [LSX Tour Operator] how to add tour operator widget to wp pageThis post has been resolved.
Forum: Plugins
In reply to: [LSX Tour Operator] how to add tour operator widget to wp pageHi @stewart24th
Below are a few examples of the shortcode, I have written a short description of what they do. What are you wanting the widget to show? Tours, accommodation or destinations?
The following will show 9 random destinations, in a carousel, 3 per slide.
[lsx_to_post_type_widget post_type="destination" columns="3" limit="9" order="ASC" orderby="rand" carousel="1" include="" ]
The following will show the first 9 latest tours added, in a 2 column grid. With the excerpt disabled.
[lsx_to_post_type_widget post_type="tour" columns="3" limit="9" disable_placeholder="0" disable_text="1" order="DESC" orderby="date" carousel="0" include="" ]
You can specify specific items by using their post IDs and the “include” parameter.
[lsx_to_post_type_widget post_type="tour" columns="3" order="ASC" orderby="none" carousel="0" include="12,15,188" ]
Let me know what config you are looking for an I can help with the shortcode paramters.
- This reply was modified 4 years ago by Warwick Booth.
Forum: Fixing WordPress
In reply to: Comment Notification Email has incorrect links.Hi all. Turns out it was a function from the Jetpack plugin, i was looking in the wrong place
Forum: Fixing WordPress
In reply to: Custom post type rewrite rules on nginxHi Everyone
A little bit of info i have found out on this problem.
nginx doesnt use a .htaccess file. Our sys admin writes up a conf file based on a similar principle to this link.
nginx rewrite rule- line 14 would be /wp-includes/ms-files.php for wordpress 3.0 mu
We are doing further testing and debugging on how to do this dynamically.
Forum: Plugins
In reply to: Maximum (limit) number of images in Gallery ShortcodeHi scdwb
I had the same problem but couldn’t find an answer so i wrote one.
Include the function in functions.php, for your application you will need to specify the post id to be used. Im using this inside my loop on the single page.
Then call the function and use the attachment ids it returns to include in the gallery shortcode.
$attachment_ids = get_random_gallery_images();
[gallery columns="1" id="12" include="'.$attachment_ids.'"]
function get_random_gallery_images(){ global $wpdb,$post; $ids = ""; $counter = 0; $number_of_posts = 2; $args = array( 'post_type' => 'attachment', 'numberposts' => 2, 'post_status' => null, 'orderby' => 'rand', 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach ($attachments as $attachment) { if ($counter != 0) { $ids .= ','.$attachment->ID; } else { $ids .= $attachment->ID; } $counter++; } } return $ids; }
Forum: Fixing WordPress
In reply to: drop down list for authorsForum: Fixing WordPress
In reply to: [Plugin: Wp-e-commerce] Pagination for products not workingI am using the “custom” structure like so
/%category%/%postname%/I changed it to the “Day and Name” structure as well and tested it with that.
Unfortunately it is still showing the same posts on every page
Forum: Plugins
In reply to: Custom Field Checkbox with WordPress [Flutter]Well first check your Database to see if the values are actually saving.
I have added checkboxes too and i save my post but nothing is saved.
Forum: Plugins
In reply to: Flutter Check BoxesThanks, but it turns out the plugin is not saving any other types of fields (checkbox, radio button etc) except the text fields.
I checked the Database in the wp_postmeta table.
Forum: Fixing WordPress
In reply to: WordPress is formatting my HTML Tagswell as a temporary solution i found this
https://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/
It will find and replace strings for you.
I simply changed the code to look for
class="new_window"
and added that to my links.But not permanent
Forum: Fixing WordPress
In reply to: WordPress is formatting my HTML Tagswhen i switch between the visual and html editor the code remains the same, its only when i click save that it removes everything
Forum: Fixing WordPress
In reply to: WordPress is formatting my HTML TagsYeah that was unchecked already
Forum: Requests and Feedback
In reply to: I got a http error when uploading imagesyeah thanks, the .htaccess fix worked the best.
Forum: Fixing WordPress
In reply to: Page Template option absent from Admin page for PagesYou can check that your theme is actually selected.
I uploaded a new theme and simply overwrote the files that were there, WordPress was using the theme, but if i went to the Theme selection screen, none was selected.
So check if its actually selected, my Custom template drop down menu returned when i did this.