plankguy
Forum Replies Created
-
Forum: Plugins
In reply to: [Merge + Minify + Refresh] $style/$script_path check fails when using BedrockI should note that the problem only arises for WP core assets…
Forum: Plugins
In reply to: [Better WordPress Minify] 404's when changing min/cache pathsOk, so the issue was that I needed to copy over the contents of the “/wp-content/plugins/bwp-minify/min/” to the “/min/” directory I created within my theme folder. It’s not that clear in the instructions on betterwp.net, but upon seeing “assuming that an installation of Minify library exists there.”, I realized I had to copy the minify scripts over.
The only issue I see in the future is if minify library files change in the future…
Forum: Plugins
In reply to: [Chartbeat] Js not appearing for wp_footerProblem was I was logged in as admin, and the person who added the plugin set “Track visits by Site Admins?” to “no”…
If you use shortcode you can:
<?php echo do_shortcode("[rotatingtweets tweet_count=3 no_rotate=true]"); ?>
Or, i’ve actually called the shortcode function directly…
<?php echo rotatingtweets_display_shortcode(array( 'tweet_count' => 5, // Change to how many you want 'no_rotate' => TRUE // stop rotating )); ?>
UPDATE: I just realized you want to rotate 3 at a time… this will just show 3, and not rotate…
Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Twitter Profile ImageI was wrapping the attribute value in quotes and using a value of ‘true’, that’s apparently a no-no. What worked is:
official_format=1
Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Twitter Profile ImageUsing shortcode I can’t get the twitter icons to show, here’s my shortcode:
do_shortcode('[rotatingtweets screen_name="xxxxxx" exclude_replies="true" tweet_count="3" official_format="true" no_rotate="1"]');
Using the widget in the sidebar as a test works fine, am I missing something?
Thanks.
Forum: Plugins
In reply to: [Google Forms] Shortcode Throwing JS errorThat fixed it! I’ll my eyes peeled for an update that fixes that issue.
Thanks for you quick help, great plugin, nice job!
Forum: Plugins
In reply to: [Google Forms] Shortcode Throwing JS errorUpdated & getting same error.
Forum: Plugins
In reply to: [Google Forms] Shortcode Throwing JS errorI’ll try 0.47, just saw that there’s an update! I’ll keep you posted…
Forum: Plugins
In reply to: [Google Forms] Shortcode Throwing JS errorV0.46, running in Chrome V26.0.1410.65
Forum: Themes and Templates
In reply to: Conditional tags not working in excerpt length filterSo i’ve narrowed is to needing to reset the query with
wp_reset_query()
before using conditional statements. However, because am using the conditional statements mid-loop it just gives me the desired effect, but also adds the page content :(… I also read that I can store thewp_query
in a variable and retrieve it after the query, but no go…Forum: Themes and Templates
In reply to: Conditional tags not working in excerpt length filterAnyone, anyone..? Bueller, Bueller…
Forum: Themes and Templates
In reply to: Conditional tags not working in excerpt length filterYep tried that, and it doesn’t work on my posts page. I should tell you that I have tried:
is_home()
is_page_template('page-home.php')
(where ‘page-home.php’ is the file being used)is_page('homepage')
(where ‘homepage’ is the page slug)is_page('Homepage')
(where ‘Homepage’ is the page title)is_page('0')
(where ‘0’ is the page ID)
Even
is_page()
doesn’t want to work…Forum: Fixing WordPress
In reply to: Query_posts alters wp_list_pages outputFound a fix. It keeps the pagination and fixes the
wp_list_pages
issue thatquery_post
can create.<?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('category_name=yourcat&showposts=2'.'&paged='.$paged); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <?php the_title(); ?> <?php the_content(); ?> <?php endwhile; ?> <?php previous_posts_link('‹ Previous Page | '); next_posts_link('Next Page ›'); ?> <?php $wp_query = null; $wp_query = $temp; ?>
The last line basically restores the
$wp_query
back to its original state. It must be placed after the pagination in order for the pagination to work.Forum: Fixing WordPress
In reply to: Query_posts alters wp_list_pages outputI had the same issue, but I think i’ve got it. I haven’t tested it much (it’s late, i’m tired, and this has taken awhile to figure out). But this seems to work:
<?php $myPosts = new WP_Query(); $myPosts->query('showposts=1'); while ($myPosts->have_posts()) : $myPosts->the_post(); ?> the_title(); the_content(); endwhile; ?>
That seems to resolve the issue of having the page list, after the post query.
UPDATE: …Pagination doesn’t seem to work when adding &showposts=3. Back the the drawing board.