Predefine Magazine Style Layouts

You can use a couple known plugins. TYPES and VIEWS, by wp-types.com. Please keep in mind that I am in no way, shape, or form affiliated with these plugins or plugin authors. Also, please note, the TYPES plugin is free, and the VIEWS plugin is premium. You will not be able to receive support for … Read more

Integrating jSquares and Jquery with WordPress loop

Your main issue is that you’re loop logic is incorrect You’re doing: Foreach post iterate over each box type and print out the current post as that box So if you define 5 boxes, then for post 1 you’ll have 5 copies of that post, then another 5 for post 2, then another 5 for … Read more

Need help making Gallery slideshow with lightbox work correctly

this usually happens because lightbox gets appended to every image . It would look like this in the source code <IMG src=”https://wordpress.stackexchange.com/questions/66237/your image” rel=lightbox”> You need to add a gallery name to the gallery so that it looks like this <IMG src=”https://wordpress.stackexchange.com/questions/66237/your image” rel=”lightbox[gallery1]”>

Retrieving next_post_link() and previous_post_link() in functions.php

<?php function get_all_images($post_id=0, $size=”poster”, $attributes=””) { global $post; setup_postdata($post); $post_id = $_POST[‘post_id’]; if ($post_id<1) $postid = get_the_ID(); $post = get_post($post_id); $get_content = $post -> post_content; $content = apply_filters(‘the_content’, $get_content); $content = str_replace(‘]]>’, ‘]]&gt;’, $content); $title = get_the_title($post); $previous_post = get_previous_post(); $next_post = get_next_post(); $previous_link_url = get_permalink(get_previous_post(false,”,true)); $next_link_url = get_permalink(get_next_post(false,”,false)); if (!empty( $previous_post )) $previous_link = … Read more

Using AJAX in a Widget to Sort items [closed]

The script you are loading will apply the sortable to all elements with the .mywidget-list class just after the document has loaded. Once you drop your widget inside a sidebar, a new .mywidget-list element is created trough $.ajax, which cannot have your sortable function attached to it, because it’s new. If you save the widget, … Read more

Null value given when confirming email’s

Firstly, this isn’t an error, it’s a warning. If it’s causing a page crash rather than a logic bug, thats because you’re printing your error log to the screen, not logging it to a log file as you should be doing. Turning off display errors should fix this. This still leaves you with the warning, … Read more

Open attachments in new tab/window

Presuming you don’t have a blank install have you tried disabling all your active plugins to see if it might be a conflict? If you can set the links to open in a new window when no plugins are active then activate one plugin at a time to figure out the culprit. Also check if … Read more