rmsgreig
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Custom Meta Checkbox Not Staying CheckedGreat this works, thanks for taking the time to explain 🙂
Forum: Developing with WordPress
In reply to: Custom Meta Checkbox Not Staying CheckedI use the kint debugger plugin and get this result: $meta string(2) “on”
Forum: Fixing WordPress
In reply to: If Featured Image Exists Use As Header ImageHi, sorry for the delayed response I have been out of the office so not been working on the project. This has worked a treat! Thanks 🙂
Forum: Fixing WordPress
In reply to: If Featured Image Exists Use As Header ImageI tried removing $post_id and also replacing with $post->ID but neither does the trick unfortunately. I have the code in header.php like so:
<?php do_action('sydney_after_header'); ?> <div class="sydney-hero-area"> <?php sydney_slider_template(); ?> <div class="header-image"> <?php sydney_header_overlay(); ?> <img class="header-inner" src="<?php if(has_post_thumbnail($post->ID)){the_post_thumbnail();} else {header_image();} ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>"> </div> <?php sydney_header_video(); ?>Forum: Plugins
In reply to: [Booking Calendar] Price not Updating When Dates ChangeWe still need to be able to show people the cost for number of nights before the proceed to booking, so it’s not really possible to take out the costs entirely. We have tried it on another computer in the office and it does the same move from 3 days to 5 days quickly and it gives the 3 day cost, this time however it was only the first time the user changed dates, after that it showed the correct costs.
I have emailed the support as requested with a link to hereThanks
RachelForum: Plugins
In reply to: [Booking Calendar] Price not Updating When Dates ChangeIt doesn’t end up showing the 5 day cost though – I have tested this in my own browser(s) and it only shows the 3 day price overall, is there something we can do to fix this? As it is a major problem for our client as they are having to honor the prices that the customers are getting.
ThanksRachel
Forum: Plugins
In reply to: [OpenTickets Community Edition] Creating Custom Query in OpenTicketDo you think there would be a reason the query would not be returning results?
ThanksForum: Developing with WordPress
In reply to: wp_dequeue_script page speed helpI tried to deregister and then register on a specific page using is_page but it didn’t register them?
Forum: Developing with WordPress
In reply to: wp_dequeue_script page speed helpThanks for the guidance, I have updated my code:
add_action('wp_print_scripts','custom_conditional_loading', 100 ); function custom_conditional_loading(){ if(!is_page(825)) { wp_dequeue_script('jquery-ui-core'); wp_dequeue_script('moment-js'); wp_dequeue_script('moment-core-js'); } }But still no luck, I can deregister the scripts, but then they won’t load on the pages they are supposed to, I even tried copying and pasting the example you gave above and this didn’t work either, any ideas?
thanksForum: Plugins
In reply to: [OpenTickets Community Edition] wp_enqueue_script page speed helpHello,
I have tried the dequeue’s above but they are still appearing, would you have any other ideas that may work?Thanks
RachelForum: Plugins
In reply to: [OpenTickets Community Edition] Creating Custom Query in OpenTicketHello, just wondered if you had an update on this please?
Forum: Plugins
In reply to: [OpenTickets Community Edition] Creating Custom Query in OpenTicketHello,
Sorry for the delay in responding, I tried both these queries out yesterday and the first one returns different events not all the events of the same name with different dates and the second returns no results at all, any ideas?Many Thanks
Forum: Plugins
In reply to: [OpenTickets Community Edition] wp_enqueue_script page speed helpthere are still a couple of scripts that show up on pages that don’t have the events, I am trying to remove them like so:
wp_dequeue_script('open-tickets-community-edition', plugins_url('assets/js/libs/moment-timezone/moment-timezone-all-years.js')); wp_dequeue_script('open-tickets-community-edition', plugins_url('assets/js/libs/fullcalendar/lib/moment.min.js'));but having no success so far
thanks
RachelForum: Plugins
In reply to: [OpenTickets Community Edition] Creating Custom Query in OpenTicketgreat thanks, I will try these out tomorrow
Forum: Plugins
In reply to: [OpenTickets Community Edition] Creating Custom Query in OpenTicketHello sorry I did not mean to be so vague, but wrote the post in a bit of a rush.
Basically I have been writing a custom post query so that I can have a “More Dates” area below the event. I did run the meta array and find the _event_area_id but as the top level event does not seem to have an _event_area_id I could not use this as the query.
At the moment I am using categories, but this doesn’t seem to be that stable, as it looks like when you update the parent event it clears the categories of the child events? Is there a better way to go about this query?function ycd_get_workshops($atts) { $atts = shortcode_atts( array( 'category' => '44', ), $atts, 'get_workshops' ); $return=''; global $post; $currentID = get_the_ID(); $currentTitle = get_the_title(); $currentImage = the_post_thumbnail_url(thumbnail); $cur_cat = $atts['category']; $args = array( 'post_type' => 'qsot-event', 'post_status' => 'publish', 'numberposts' => '-1', 'cat' => $cur_cat ); $workshops = get_posts($args); if(count($workshops)) { $return .='<div class="moreworkshops"><h3>More Dates Available<h3><ul>'; foreach($workshops as $post): setup_postdata($post); $id = get_the_ID(); $url = get_permalink($id); $name = get_the_title(); $start = get_post_meta($id, '_start', true); $end = get_post_meta($id, '_end', true); $eventAreaID = get_post_meta($id, '_event_area_id', true); if(!empty($eventAreaID)) { $return .='<li><img src="' . $currentImage . '" alt="/>' . $name . '"<a href="' . $url . '"target="_blank">' . $name . '</a> </li>'; } endforeach; wp_reset_postdata(); $return .= '</ul></div>'; } else { $return .= '<p>No Workshops Found.</p>'; } return $return; } add_shortcode('get_workshops', 'ycd_get_workshops')