th3rion
Forum Replies Created
-
Forum: Plugins
In reply to: [FT Calendar] order events by start date – working queryExample of code with working pagination with WP-Paginate plugin but you can use default WP controls or other plugin – just change last part.
<?php global $wpdb; $date = date("Y-m-d"); $querystr = " SELECT * FROM wp_posts JOIN wp_ftcalendar_events ON wp_posts.ID = wp_ftcalendar_events.post_parent WHERE wp_posts.post_status = 'publish' AND wp_posts.post_type = 'post' AND wp_ftcalendar_events.start_datetime >= '$date' GROUP BY wp_posts.ID ORDER BY wp_ftcalendar_events.start_datetime DESC "; $total_record = count($wpdb->get_results($querystr, OBJECT_K)); $paged = get_query_var('paged') ? get_query_var('paged') : 1; $post_per_page = 10; $offset = ($paged - 1)*$post_per_page; $max_num_pages = ceil($total_record/ $post_per_page); $wp_query->found_posts = $total_record; $wp_query->max_num_pages = $max_num_pages; $limit_query = " LIMIT ".$post_per_page." OFFSET ".$offset; $pageposts = $wpdb->get_results($querystr.$limit_query, OBJECT_K); ?> <?php if ($pageposts): ?> <?php global $post; ?> <?php foreach ($pageposts as $post): ?> <?php setup_postdata($post); ?> <?php $start_date = date_i18n("d F Y", strtotime( $post->start_datetime )); ?> <!-- do stuff --> <?php echo $start_date; ?> <!-- example how to display event start date --> <?php endforeach; ?> <?php endif; ?> <?php if(function_exists('wp_paginate')) { wp_paginate(); } ?>Forum: Plugins
In reply to: [AWP Classifieds] Adverts not expiringHi
Thank you for your answer.Im waiting for an answer from my web host provider but I already know that cron is disabled or not working π I installed BackupWordpress plugin to check if its able to make automatic scheduled backups but it displays error about cron not working properly.
wp-cron.php is returning a 403 Forbidden response which could mean cron jobs aren’t getting fired properly.
So I hope they can fix this for me and ACWP will work as intended π
Thank you for your helpForum: Fixing WordPress
In reply to: if statement for user post countYes it worked – thank you very much π
Forum: Plugins
In reply to: [WP Vegas] not working – only arrows visibleYes I tried and it works now (didnt have one wp_head() in page). So obvious i didnt think about it earlier. So stupid π
Im making new theme and was trying few plugins. Yours is super simple and great. But it would be nice if it have thumbnail navigation.
For now i implemented supersized jquery plugin and it does the job so i think ill stick with it.
Sorry for problem…
Forum: Fixing WordPress
In reply to: form populated with data from dropdownI searched for info if this is possible with their plugin but im not certain.
Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] Events on top of each other ? (Link)This works for mini calendar too. Code below:
$(function() {
$(“.mini .has-events”).children().not(“.trigger”).hide();
$(“.mini .has-events .trigger”).on(“click”,
function(e) {
e.preventDefault();
$(“.mini .has-events”).children().not(“.trigger”).hide();
$(this).parent().children().not(“.trigger”).toggle();
});
$(“.mini-event .close”).on(“click”,
function(e) {
e.preventDefault();
$(this).parent().parent().parent().toggle();
});
});Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] wrong week and day in grid viewSo its not a bug? But i cant make it work as i want… If theres no simple way to make it display proper week and day everythime I think ill just hide this whole Month – Week – Day line…
Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] wrong week and day in grid viewHmm on pc everythings fine but i opened page on ipad and theres in week view 1-7 July and should be 15-21 July.
http://turystyka.elk.pl/kalendarz-imprez/?time=week&dy=1&month=7
Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] wrong week and day in grid viewProblem was that todays date in todays events was 1 July and today is 19 July π I deleted plugin and reinstalled it and it helped – not sure why. So sorry for unnecessary topic…
Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] popup on overlayYes i meant that π English is not my main language. Thank you ill try to change that.
Forum: Plugins
In reply to: [CataBlog] [Plugin: CataBlog] wpautop table bugYes im aware but in my code theres no break lines. Heres screenshot:
http://th3rion.unixstorm.org/jarex/1.jpgI think its a bug – putting code in one line doesnt help.