caroline
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-PostViews] Exclude numbers and specific categories?Thanks!
Are there a variable to get the post thumbnail only instead of the POST_CONTENT?
Forum: Hacks
In reply to: Change URL on attachments (image.php)Thanks! Yes I will look into AJAX some day, right now I’m swamped with newly learned things that need to be processed, hahaha!
—
yeah I believe you!@sebastien Dumont
Global issue 🙁
Forum: Hacks
In reply to: Change URL on attachments (image.php)Hi again! I’ve been working on this and found a solution (for now)!
I don’t mind the entire page to reload, but as you say the coding will take a while for me to do so. So I managed to find a nice pop up plugin, which is thankfully also responsive. The plugin I use is wp featherlight (or something). It works fine and simple after I have insert the thumbnails + links as custom fields values and then echo it in my custom template. Works ok for now!
But, I also found out in YOAST SEO I could easily redirect the attachments/images to the same page. This could be something to work on as well.
—
Haha yeah I should just keep my mouth shut, since I haven’t renewed my passport myself 😀
Forum: Plugins
In reply to: [WP Font Awesome Share Icons] Icons not showing? :(Same issue here!
I use the shortcode after the entry title in all posts (link are my name).I don’t understand why I need a plugin that utilize png icons so very happy if you could help me here 🙂
Thanks!
Not working for me either after updating to latest versions.
Looking for help!Forum: Hacks
In reply to: Change URL on attachments (image.php)I tried and tested lots of plugins and other functions to end up here!
I found something good in WP Types, this plugin can add/attach already published images into a new post type (mine CPT are product). It generates the image URL to a custom field value. I’ve been trying to build a link href here without luck.Another great and simple code I want to use it this one. It shows links to the child posts but sadly no thumbnails:
<?php $children = wp_list_pages('title_li=&child_of='.get_the_ID().'&post_type=produkt&echo=1'); if ($children) { ?> <ul> </ul> <?php } ?>But as you say I will keep look for galleries and plugins.
—
Oh so you’re the american with the passport! (Haha sorry just had to no offence:)
Sounds really fun, did you gave some wp advice in stockholm? I wish you the best!Forum: Hacks
In reply to: Change URL on attachments (image.php)Hello bcworkz!
I’m so glad you answered me, it means everything!But a lot happens in a week for me and i’ve been struggling and working around the clock — a literally week.
The new question is similar: how can I replace the full image with the ones in the sidebar when I click on them? Here –> http://www.makeupedia.se/produkt/apolosophy-nail-polish/posh-orange-27
I believe there must be a prefix/suffix change in the URL to do this, so would love to get some help!
I’m also wondering but I don’t use this plugin.
I need to echo linked childs thumbnails on the parent post.
Oh dear I’m working around the clock getting nowhere!
Forum: Hacks
In reply to: How would I automatically append/suffix the post title with post IDIs this something I can use to append suffix to images attatchments in custom post types URL’s as well?
Forum: Fixing WordPress
In reply to: Thumbnail links to full size (remove attachment link)I’m getting closer to a solution but would appreciate any help!
What can I do about this script to print the correct URL?
<script type="text/javascript"> jQuery(document).ready(function($){ var button = $('button'); jQuery(button).on('click',function(){ var button_id = $(this).data('id'); var img_id = $(this).next('img').data('id'); //console.log(button_id); //console.log(img_id); if(button_id === img_id){ location.hash = '#'+img_id; } }); });</script>This is the html:
-
<?php
-
<?php
//echo get_the_post_thumbnail();
$image = wp_get_attachment_url( get_the_post_thumbnail($post->ID));echo ‘<button class=”select-image” data-id=”‘.$attachment->ID.'”>Image ID</button><img src=”‘.$image.'” data-id=”‘.$post->ID.'”>’;
?>
$args = array(
‘post_type’ => ‘prefix_produkt’,
‘posts_per_page’ => -1
);$myposts = get_posts( $args );
foreach ( $myposts as $post ) {?>
<?php }
wp_reset_postdata();?>Forum: Fixing WordPress
In reply to: Thumbnail links to full size (remove attachment link)<script type="text/javascript"> $('#product-img').click( function(event){ event.preventDefault(); var bigPath = $(this).attr('href'); $('#productContent').html( "<img src=" + bigPath + " />" ); }); </script>Any ideas what I should do from here?
Thanks!Forum: Fixing WordPress
In reply to: WP crashYou will have to upload the functions.php via ftp.
Did you save a copy of your functions.php before editing?
Forum: Fixing WordPress
In reply to: Gallery images problemDo you use a child theme?
Update/change theme and prepare to build up again. But keep the ‘old’ site’s templates so you can go back and have a look at them when you build the new one.
When something is totally wrong I always start with deactivating the plugins and then activate them one by one. But updating to a new theme etc has always solved any kind of error! It just takes some extra time, but well worth it.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Not working with latest WP 4.3The custom fields are visible and works for me. I have the latest version and use latest twenty15 and twenty15 childtheme.
My problem is that when I’m on the page and click on a thumbnail it won’t open.
I just want the thumbnails to open the full size on the same page as the gallery of thumbnails, hopefully I can find another solution for this.
-
<?php