Unwanted content in website title

I doubt WordPress would be putting a url like you mentioned ‘www.domain.com/…’ in title tags either way. Are you sure you’re that’s where it’s showing up? The hash in the url is likely just for slider functionality. You could try a different slider or ignore it, since it doesn’t affect anything.

Add a class to posts in increments of 2

Filter post_class, use a static internal counter in the filter callback: add_filter( ‘post_class’, ‘wpse_100804_post_class’ ); function wpse_100804_post_class( $classes ) { static $counter = 0; $counter += 1; switch ( $counter ) { case 4: $counter = 0; case 3: $classes[] = ‘extra’; } return $classes; } In your loop template call post_class() like this: while … Read more

Dealing with a library that depends on jQuery

First of all if you investigate PikaChoose source code, then you will see that it wraps the code with self invoking closure: (function($) { // … })(jQuery); It means that they use short form properly. In the same time it means that all you need to do is to enqueue jQuery and PikaChoose scripts and … Read more

`wp_editor()` CSS messing up the jQuery Dialog

Yeah this is a fun one had to make some mods to make this one work…. add this to your theme stylesheet (style.css): .ui-front { z-index: 1001 !important; } .ui-widget-overlay { background: none repeat scroll 0 0 #000000 !important; opacity: .6 !important; filter: Alpha(Opacity = 60) !important; } This should override the editor.css. Let me … Read more

Masonry and Jetpack Infinite Scroll – overlap issue

I have now solved point (2), the overlapping posts problem; maybe this will help someone else. I changed wrapper to true in the mytheme_jetpack_setup function in my PHP (so that the new posts are wrapped in their own div) And I changed the jQuery to: $(‘#content’).masonry({ columnWidth: ‘.grid-sizer’, itemSelector: ‘article’, gutter: ‘.gutter-sizer’ }); var infiniteCount … Read more

Format numeric symbols in titles

WordPress makes number of typographical replacements, related to dashes. You can read through the How WordPress Handles Dashes and Hyphens for full details, but in short your specific case is [space][hyphen][space] getting replaced with [space][en-dash][space]. You will have to step through your code to make sense at which point it goes wrong and turns into … Read more

Display data on same page as form without refresh

If I understand correctly you need the original form to display the values of what has just been posted. You also need the table to display 0 on values that haven’t been calculated. At the moment the table calculates information perfectly with a submit refreshing the page. You can use the if(isset($_POST[“fieldname”])){ variable you have … Read more