EnergyFreak
Forum Replies Created
-
I thought the same.
Forum: Plugins
In reply to: [Spocket ‑ US & EU Dropshipping] Does not connect to my shopSame for me. I clicked on the link connect my store instead of the other way and now i’m wondering if that’s the reason it does not work. When I disconnect and try again with the Auth key, I get this error: Error: An error occurred in the request and at the time were unable to send the consumer data.
Really annoying as this is crucial obviously… This needs to be fixed ASAP.
Forum: Fixing WordPress
In reply to: ul li not displaying in post and pageYup, you’re right. I tried exactly that but with 20px, apparently it wasn’t enough. Thanks a lot!
Forum: Plugins
In reply to: [Post Views Counter] Show posts with most views with WP_QueryHmmm, it doesn’t seem to be working for me, here is my loop and arrays:
<?php global $exclude; $most_popular_query = new WP_Query( array( 'post__not_in' => $exclude, 'posts_per_page' => 10, 'orderby' => 'post_views') ); while ( $most_popular_query->have_posts() ) : $most_popular_query->the_post(); array_push($exclude, get_the_ID()); ?> <li> <div class="thumb"> <a href="<?php the_permalink() ?>"><?php the_post_thumbnail( 'frontpage-recent-posts-thumb' ); ?></a> </div> <div class="content"> <h3><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>" style="font-weight:bold;"><?php echo(get_the_title()); ?></a></h3> </div> </li> <?php endwhile; // Reset Query wp_reset_query(); ?>Forum: Plugins
In reply to: [Basic User Avatars] How to display avatar in author.phpThanks! 🙂
Forum: Plugins
In reply to: [Basic User Avatars] How to display avatar in author.phpAh thank you for clarifying. It’s working perfectly. I imagine the “32” is the width of the picture in pixels?
Forum: Plugins
In reply to: [Post Views Counter] Display the View Counter in the post summary/excerpt.Works perfectly, thank you!
Forum: Plugins
In reply to: [SearchAutocomplete] Replacing jQuery UI with lighter front-end pluginI’m sorry, i’m really a complete noob with anything regarding javascript so I have a few more questions:
1. Do I need to download all the files from JQuery Autocomplete or just the minified version that you provided in step 2?
2. I tried calling the function in my footer.php to activate my input selector with this:
<script> jQuery( document ).ready( function( $ ) { $('#s').autocomplete({ serviceUrl: '/wp-admin/admin-ajax.php?action=autocompleteCallback', dataType: 'json', paramName: 'term', transformResult: function(response) { return { suggestions: $.map(response.results, function(dataItem) { return { value: dataItem.title, data: dataItem.url }; }) }; }, onSelect: function(suggestion) { window.location.replace(suggestion.data); } }); }); </script>But I am getting an error from dreamweaver, so I think it could have something to do with this <script>
3. I can’t find this file anywhere:
/js/the-gist.js
4. If I want to style the autocomplete, what would I need to change?
Again, thanks a lot for your help!
Forum: Plugins
In reply to: [SearchAutocomplete] Replacing jQuery UI with lighter front-end pluginHi,
This looks really cool but I have a few questions:
1. So this would pull our post entries from our WP database?
2. This is just a custom script and not a plugin?
3. Not sure how to install it on my custom theme. I’m coding every single template separately. Converted an html static website to wordpress.This is what I have as my search fielkd in my template index.php:
<div class="search-wrap"> <div class="search-icon"></div><!-- //mobile search button --> <form action="<?php echo esc_url( home_url( '/' ) ); ?>" id="searchform" class="search-form" method="get" role="search"> <input type="text" id="s" placeholder="Search" class="search-field"> <input type="submit" value="" id="searchsubmit" class="search-submit"> <a class="search-close" href="#"><i class="fa fa-times-circle"></i></a> </form> </div><!-- /.search-wrap -->What would I need to add or change to the above code to make it work?
4. Also, I imagine I need to add some JS files to my template and call the script somewhere as well to make it work?
Thanks a lot for your help!
Forum: Plugins
In reply to: [Post Views Counter] Display the View Counter in the post summary/excerpt.How do I add this to my template? Like this:
<?php echo pvc_get_post_views() ?>Thanks!
Forum: Plugins
In reply to: [Post Views Counter] PHP Callback to use with Post Pay CounterOk, I will ask them for it then. Thanks!
Forum: Fixing WordPress
In reply to: Display category links and titles in a loopThis is what I was able to come up with, but it’s still not working. I added this in my functions.php:
function list_my_categories($exclude = '') { if (!empty($exclude)) { $exclude = 'exclude=' . $exclude; } $categories = get_categories($exclude); $category_link = get_category_link( $category_id ); $html = ''; foreach ($categories as $cat) { if($cat->category_parent == 0) { $html .= '<div class="mega-item">' . '<a href="' . $category_id . '">' . $cat->cat_name . '</a>' . '</div>'; } } return $html; }and called it with this in my template:
<div class="col-md-12"> <div class="mega-item-wrap"> <?php echo list_my_categories() ?> </div> </div>Forum: Fixing WordPress
In reply to: Display category links and titles in a loopAnyone? All I need is to find a way to loop this:
<div class="mega-item"> <a href="#">News & Fitness</a> </div>Forum: Plugins
In reply to: [Post Views Counter] Display the View Counter in the post summary/excerpt.One question, the short code is working good, except, I only want to output the number and not the whole styling and other types of html or css. Because tight now, it seems to be outputting more than just the number even though i removed all styling, classes and everything else in the post views counter “display”
Thank you!
Forum: Fixing WordPress
In reply to: Add a second class to last post in loopMarking it as resolved.