litedesigns
Forum Replies Created
-
Forum: Hacks
In reply to: Creating Gallery Page Template From Custom Post Type ImagesThis may help….
https://www.ads-software.com/extend/plugins/wp-get-post-image/
install this plugin and add the following code.
it gets the images uploaded with posts/pages/custom post…..
<?php // use this example wherever you have access to $post->ID, e.g. the WordPress loop if(function_exists('wp_get_post_image')) echo wp_get_post_image('width=450&css=alignleft&parent_id='.$post->ID); ?>
Forum: Hacks
In reply to: Creating Gallery Page Template From Custom Post Type Imagescheck if images are available through wordpress media libarary.
Also check src of the image(maybe the url is incorrect).“We cannot seem to get the images that are uploaded through the custom post type to be displayed within the gallery page template.
This is not very helpful. provide any snipet you may have for uploading the image.
If the images are uploaded you may need to insert the images into the post… please provide more information on the template and how the images are uploaded and retrived
Forum: Plugins
In reply to: [WP Super Heatmap] [Plugin: WP Super Heatmap] Checkbox doesnt (un)checkTemp solution for # problems (DOESNT RECORD # CLICKS!!!) :
Replace this :
window.setTimeout(function(){document.location.href=url;}, 1000); // timeout and waiting until effect is completeWith :
if (jQuery(event.target).closest(‘a’).attr(‘href’) != ‘#’) {
window.setTimeout(function(){document.location.href=url;}, 1000); // timeout and waiting until effect is complete
}This if statement stop the code from running where ever # hash is found in href of the link “a” element. When using this clicks do not seem to get registered on the clicked #anchor… although a message is sent to the server… Im really tired atm. ill work on this later. I think the developer of the plugin is on holiday… =P
Forum: Plugins
In reply to: [WP Super Heatmap] [Plugin: WP Super Heatmap] Checkbox doesnt (un)checkHi Guys, ok the problem is in file wp_super_heatmap_js.js in “js” folder.
change : event.preventDefault(); on line 7
into
$(“a”).click(function(ev) {
ev.preventDefault();
});event.preventDefault(); prevents click actions on ALL the element. by adding this function you can specify “a” element (hyperlink) to stop from its default action which allows for recording of the click on links; this action is later re-assigned… so just add this function and you should be ook.
i have also found another issue with # sign which make the page to go to top whenever my “anythingSlider” slides numbers are clicked on.
Tip : if you have a fast server reduce 1000 ‘s at the bottom of the page which delays the clicks on the links allowing for the recording of the click
Im not responsible for any problems caused. but i can tell you i use the plugin on pretty large sites and it seems ok atm =)