Greg Smith
Forum Replies Created
-
Forum: Plugins
In reply to: [Theme My Login] Customizer keeps on refreshing after TML activationI’ve seen most similar topics closed with comments that disabling WP-Copyright-Protection solved the problem. I’m commenting here because it’s still open. I don’t have WP-Copyright-Protection in my theme. It’s a custom theme I’m currently building, about 70% done. It’s very lightweight, no plugins in use. I was using the multiple-post-thumbnails plugin. It’s disabled. I’ve disabled the few custom widgets I’ve built. Stripped down to nothing. Still getting the Customizer refresh loop.
I performed the phpMyAdmin plugin deactivation technique just to be sure. Had no effect. I don’t doubt that the WP-Copyright-Protection is ONE culprit. It’s certainly not the ONLY culprit. I’d love to hear any more insight, if someone has a clue.
Thanks!
GSForum: Hacks
In reply to: Customize javascript settings via admin?I was able to get it working with this one modification:
$timeoutvar = get_field('slideshow_timeout'); $params = array( 'auto' => true, 'speed' => 500, 'timeout' => $timeoutvar );
I just access my ACF name and set it as a variable.
Forum: Hacks
In reply to: Customize javascript settings via admin?OK, I’ve figured out most of this. I think the rest of my solution is to involve the ACF variables. I’ll add more info if I resolve it, maybe this will help someone else searching for similar info.
// in functions.php // enqueue my script (and the settings script) wp_enqueue_script( 'my-slider', get_template_directory_uri() . '/js/responsiveslides.js', array(), '20150311', true ); wp_enqueue_script( 'my-slider-settings', get_template_directory_uri() . '/js/responsiveslides-settings.js', array('my-slider'), '20150311', true ); // localize my settings script to pass variables into PHP $params = array( 'auto' => true, 'speed' => 500, 'timeout' => 1000 ); wp_localize_script( 'my-slider-settings', 'mysliderparams', $params ); // And in responsiveslides-settings.js (function($){ $("#slider").responsiveSlides({ auto: mysliderparams.auto, speed: mysliderparams.speed, timeout: mysliderparams.timeout }); })(jQuery);
Forum: Fixing WordPress
In reply to: Exclude category from query_postsThanks for your time and help, I appreciate it!
Forum: Fixing WordPress
In reply to: Exclude category from query_postsIt’s from Theme Hybrid https://themehybrid.com/
Maybe I should start in their Forum next, and see if I can get something there…
Forum: Fixing WordPress
In reply to: Exclude category from query_postsno, it’s a standard page template, and that’s the only line I’ve edited on that page.
Forum: Fixing WordPress
In reply to: Exclude category from query_postsNo, I even did a multi-file search of all the MAIN template files, as well as the CHILD template files (which I’m working on), and that is the ONLY instance of query_posts. It appears in home.php, and nowhere else :/
Forum: Fixing WordPress
In reply to: Exclude category from query_postsThat is the only one.
Forum: Fixing WordPress
In reply to: Exclude category from query_postsYeah, I’ve tried both ASC and DESC in that position, but it doesn’t change anything. The posts still show up oldest-to-newest. Weird.
Forum: Fixing WordPress
In reply to: Exclude category from query_postsSorry, main “posts page,” as in the main blog home page. I know I’m probably using incorrect terms!
Forum: Fixing WordPress
In reply to: Exclude category from query_postsThanks for your reply esmi, but category 10 is still showing up in the main feed when I do it that way. I think I’m getting closer, using some info from that link, alchymyth, but not quite there yet. I’ve excluded category 10, but now the posts are showing up in reverse order (by date, oldest to newest). So I tried this:
<?php query_posts( array( 'post__not_in' => get_option( 'sticky_posts' ), 'paged' => get_query_var( 'paged' ), 'orderby' => 'date', 'order' => 'ASC', 'category__not_in' => array( 10 ) ) ); ?>
Still not affecting the order, whether I use ASC or DESC Showing up oldest-to-newest. I’m sure I’m missing something simple?
Forum: Fixing WordPress
In reply to: Rotate banner with each visitHey Diana, sorry, should have asked… do you want the image that loads each time to be a regular image (in an img tag) or a background image within the header?
Forum: Fixing WordPress
In reply to: HTML works on Post page, NOT on Category pageWow, okay. Thanks for that info. I’ve got some work to do. I’m starting to learn that twentyten changed the way I need to look at theme modification. I’ve got some brushing up to do this weekend. Thanks for your help!!
Forum: Fixing WordPress
In reply to: Rotate banner with each visitIt’s just going to be a matter of adding some stuff in the header file. Some code inside the head tag to make it work, and then corresponding code/content in the header that displays the random banner. You’re just talking about a static image, yes?
Give me a little time and I’ll send you the info this afternoon…
Forum: Fixing WordPress
In reply to: HTML works on Post page, NOT on Category pageOK, so I’m using twentyten, and in the category.php page, the line that’s grabbing the content (I’m assuming) is
get_template_part( 'loop', 'category' );
So I guess I’ll need to go into loop.php and grab a chunk of code that’s going to work for me, or edit one of the template files? What would you suggest?