Nicholas
Forum Replies Created
-
Forum: Plugins
In reply to: [Responsive Slider] Responsive Slider not responsiveApologies for the late reply to this post.
In my case, I have found that there should not be a pixel width on the containing element. I have now tried sticking to percentages and it seems to have worked. I only used max-width in pixels.
Hi!
I have the same issue here. WP 3.4.1. Live Wire (Hybrid Core) child theme. No navigation on list and calendar view. Also seems to disrupt my query_posts calls.
Navigation does appear on single event page, and query_posts working as normal.
Seems to be related to WP 3.4.1 update, since I have a site running the plugin on 3.4 that still works great!
Hi Scribu,
Thank you for the quick response.
I did not run the connection upgrade procedure. But I have now done that and everything seems to be working correctly on v1.3.
My error regarding WP_Query. Noted.
Thank you very much for your help and plugin!
Forum: Plugins
In reply to: [Responsive Slider] Responsive Slider doesn't work@pcgs51 & hchicha
You add images by adding items to the “Slides”, in the left hand WP menu.
Each slide has a title and a link URL. You add the image to the slide by setting the “Featured image” of the Slide.
Each slide will then appear in the slider once you have added the shortcode to your post or page.As far as I know, there are no parameters for the shortcode.
Hi,
Still no response on this thread, so I will make the question a bit more generic.
How can I add to the existing capabilities of a plugin without overriding the current capabilities?
Forum: Fixing WordPress
In reply to: List of categories with post titlesHi alchymyth,
That worked perfectly! Thank you very much!
Forum: Themes and Templates
In reply to: Display 'days until' comments are closed?Aha! Alchymyth! Great stuff! Thank you!
That worked really well! I added an else statement to add a message once comments are closed.
One thing to note, using $posts[0] set all the posts’ “days until” to the same value, so I updated it to $post. (in the loop on an archive page)
See below for current code:
<?php $days_old = (int) get_option('close_comments_days_old'); $days_left = (( $days_old * 24 * 60 * 60 ) - (time() - strtotime( $post->post_date_gmt )) ); $days_until = $days_left / 24 / 60 / 60; if(round($days_until) > 0 ) {echo "<span class='notify'>Active ".round($days_until)." days remaining.</span>";} else {echo "<span class='attention'>Sorry, but comments on this post are now closed.</span>";} ?>Forum: Themes and Templates
In reply to: Display 'days until' comments are closed?Hi alchymyth,
Thank you very much for that link!
I have had a look at that code, and I have come up with the following. It is ugly code, but it seems to do the job for now. Would like to streamline it though…If anyone is interested:
<?php $days_old = (int) get_option('close_comments_days_old'); $days_left = ((time() - strtotime( $posts[0]->post_date_gmt )) - ( $days_old * 24 * 60 * 60 )); $days_until = $days_left / 24 / 60 / 60; echo "<span class='notify'>Active ".round($days_until)." days remaining.</span>"; ?>Note: This calculation returns a negative number. I am not sure how to remove the – from the output.
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Connection OrderingThank you for the rapid responses! Much appreciated!
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Connection OrderingSo my code above is correct?
Also, any known plugin conflicts?
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Connection OrderingHi,
I am not sure what I have done wrong. When I last posted, my ordering was working. Now I check again, after changing nothing in my code and the ordering is wrong again.
Below is the code from my functions.php file:
// Activating Post to Page relationship via Posts2Posts plugin. Source: https://github.com/scribu/wp-posts-to-posts/wiki/Basic-usage */ function ncp_lr_connection_types(){ if ( !function_exists( 'p2p_register_connection_type' ) ) return; p2p_register_connection_type( array( 'id' => 'posts_pages', 'from' => 'album', 'to' => 'song', 'sortable' => 'order' ) ); } add_action('init','ncp_lr_connection_types', 100);Here is my code in my page, used to display the connections:
<?php $connected = p2p_type( 'posts_pages' )->get_connected( get_queried_object_id() ); // Display connected pages echo '<ul>'; while ( $connected->have_posts() ) : $connected->the_post(); $more = 0;?> <li id="song-<?php the_ID();?>"> etc...I must be missing something here. As far as I can tell, the above code is correct. Or not?
Any help would be greatly appreciated.
Thank you.
Note: Using WP 3.2.1 and v 0.9.5 of plugin. Also using WP E-commerce and Gravity Forms on the site.
Forum: Plugins
In reply to: [Plugin: Cart66 Lite] Amazon S3 and PayPal problems@leew4jc You will need to convert your Rand amount into USD manually yourself (unless the Cart66 developers account for this type of thing). I had a similar issue with Jigoshop and had to do the conversion myself.
You can use this currency converter class as a start: http://www.white-hat-web-design.co.uk/blog/php-currency-conversion-exchange-rates-xml/
Unfortunately, I am not familiar with Cart66, but all you need to do is convert your product amount, tax amount and shipping amounts to USD. You can do this by using the converter class. What I did was change the “default” currency conversion to R1 – USD. That way you can set a variable and multiply your amounts by that variable (around 0.13).
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Connection OrderingI am using 0.9.5. I decided to start from scratch again and it is now working and ordering correctly!
Thank you very much scribu! Great plugin!
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Connection OrderingHi scribu,
I have been going through this post, as well as your GitHub page, but as mentioned, I am confused by the changes.
I am not sure what to use and what to change. When I follow the process outlined in your Basic Usage example, I get an error. With the example above I am also not sure what $carouselToUse is… You say it is a post, but what is it being used for? My example does not make use of a variable in that way, I only have the array. Do I not need any of that anymore?Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Connection OrderingHi,
I love this plugin! And the drag and drop ordering is great! However, I am having a similar problem since the update, and I am a little confused on how to correctly do this now.
Right now I have, to connect 2 custom post types. ie. Songs to Albums:
// Find connected songs $connected = new WP_Query( array( 'post_type' => 'song', 'nopaging' => false, 'posts_per_page' => 30, 'connected_orderby' => 'order', 'connected_from' => get_queried_object_id() ) );The sorting works on the admin side. But now the order seems to be random on the front end and does not follow a discernible order.