web-girl
Forum Replies Created
-
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Calendar Views Button Says "Array"Stuart Young on the Timely forum provided this fix:
Options for disabling the views:
1. Select only 1 view to be available in Dashboard->Events->Settings –> Viewing Events tab. This should hide all views.
2. To disable JUST the views pull-down on your site, use the following CSS:
.ai1ec-nav {
display:none;
}
.ai1ec-filters {
display:block;
}
Note: With the version you’re using, you need to force .ai1ec-filters to be displayed otherwise it gets hidden along with the rest of the nav bar.Forum: Themes and Templates
In reply to: Kwicks Menu Broken after WordPress Core UpdateThank you so much! That fixed the issue. Who knew it was something at simple as that. I guess the code worked in older version of WordPress (3.2.1), but not in 3.8.1.
Forum: Themes and Templates
In reply to: Kwicks Menu Broken after WordPress Core UpdateUnfortunately, I’m looking at this on my local machine (haven’t updated the live site yet). It is a custom theme with no support.
I can’t figure out what in the WordPress core would have impacted the jQuery on the site.
I also noticed that when I look at the actual loaded site on the homepage, the code looks exactly the same, except 3.8.1 has additional JQuery links before the closing body tag:
<script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js?ver=1.7.1'></script> <script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?ver=1.9.0'></script> <script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js?ver=1.9.0'></script> <script type='text/javascript' src='https://localhost:8888/testing/wp-content/plugins/lightbox-2/lightbox.js?ver=1.8'></script>
Also, just to mention, I have wpcf-sortname as a textfield.
Thanks for helping! I checked the custom field and it looks okay. I am trying to list posts that are in the child category 48 and also in the child category 38 – do you think this is set up incorrectly? The query is retrieving all the posts correctly, just not sorting them in ascending order.
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Safari Problems with PluginI realized that the Safari issue only happened on the local installation on my computer. It works fine live, and the plugin is great.
Forum: Fixing WordPress
In reply to: Protected Pages Not Working in IE, Chrome, and SafariThanks, that fixed it when I restored the file. However, won’t someone who enters the password on a public computer have it saved? There’s no way to log out and the timeout is 864000.
Thanks, I used the code and now I have ads appearing every five posts!!
I wish there was a way to automate it, though. Even though the index page only shows 20 posts, if I were to go look at previous pages of posts, the ads would disappear. So if there were 100 older posts, for example, I’d have to write code in increments of 5 up to 100 to get the ads to appear? That’s assuming that a bunch of ads are running.
Also, I’m also not sure how to change the index page query to take into account dynamically the number of ads showing in relation to posts? Now it shows 20 posts and then 4 ads, a total of 24. I don’t know if there is a way to dynamically adjust this depending on how many posts are being displayed in total.
The problem is that I’m trying to help someone with their WP, so I’m not sure how a lot of these things might work over time.
Thanks for your help!
Thanks for your help – I will have to try this out and see if it works. I’m sorry, I’m still not very familiar with queries, but how would I start the 3rd Loop from where the first one left off (i.e., at the 5th post)?
I’ve been trying to figure this out and I’m still not sure how to do it. How I’ve set it up so far is to have the main loop get all the posts, then a second loop get posts from the Ad category. I’m using this website’s tutorial to add the ads between the posts on the index page: https://www.howtostartablog.com/how-to-put-ads-in-between-my-posts.php
I’ve replaced the part where I’d input the AdSense code with:
<?php include(TEMPLATEPATH . '/includes/advertisements.php'); ?>
To include the advertisements, and all this is working fine.
However, I’m getting stuck on how to set up the query for the my advertisements include. So far I have this:
<div class="entry small" style="padding-top:2px;height:310px;"> <?php $my_query = new WP_Query( "cat=84" ); if ( $my_query->have_posts() ) { while ( $my_query->have_posts() ) { $my_query->the_post(); the_content(); } } wp_reset_postdata(); ?> </div><!-- end .entry -->
This is outputting post content from posts in the Ad category, which is perfect. But, the problem is that I only want to get one ad per case statement and I don’t want to duplicate the add. Currently, the loop will get all posts in the Ad category and also will duplicate them.
Or is this just the wrong way to set it up, because currently the ads only show on the index page, but eventually I also want them to show on category pages.
Any help will be appreciated!
Hi Paul, I’m looking forward to that pro version when it comes out. I would love to have posts in one category be unstickied but not drafted, while having posts in another category just be drafted.
Forum: Hacks
In reply to: How to Display Today and Tomorrow Instead of Post DatesThanks for your help! I just tried the code and it seems to be working perfectly!
Forum: Hacks
In reply to: How to Display Today and Tomorrow Instead of Post DatesThanks for your help! I am going to try using your set-up and will keep working on it.
Forum: Hacks
In reply to: Comparing Post Date with Current Date and Displaying Upcoming EventsIt’s working perfectly now. Thank you so much!!
And here’s the final code in case anyone else needs something like this:
<?php global $post; $args = array('category' => 9, 'numberposts' => 4,'orderby' => 'date','order' => 'ASC',); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?> <?php $postDate = strtotime( $post->post_date ); $todaysDate = time() - (time() % 86400); if ( $postDate >= $todaysDate) : ?> <li><a href="<?php the_permalink(); ?>" style="font-size:11px;"><span style="font-weight:bold;color:#afaca5"><?php the_time('n/j'); ?>:</span> <?php the_title_attribute(); ?></a></li> <?php endif; ?> <?php endforeach; ?>
Forum: Hacks
In reply to: Comparing Post Date with Current Date and Displaying Upcoming EventsHi Oleg,
The widget is displaying all my future events! Thanks so much. I would never have figured this out on my own.
However, when I enter a post and date it today, the post doesn’t show up in the widget and the widget only shows 3 upcoming events (versus the 4 that is specified), but if I delete the post dated today, all 4 upcoming events show up.
I tried:
$postDate >= $todaysDate
and
$postDate > $todaysDate || $postDate == $todaysDateAny ideas?
Thanks!