caroline
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Blank after upgrade5 only?
I thought it would take more than 40 at most?? And if I can skip one or two, at least I will have to do 22?Forum: Fixing WordPress
In reply to: Blank after upgradeNo, I took a chance, and thankfully this is just a test-version of the real site.
Approximately, how long would this step-by-step upgrade take?
Forum: Themes and Templates
In reply to: [Twenty Fourteen] Image sizes refuse to changeHello again!
So, I still experience this problem. I’ve gone through all files in both theme and childtheme, and if I change size in img, then all images (thumbnails etc) changes. That’s not what I want.
How come WordPress generates this width automatically when I upload images to a post?
This only happens for images there are larger than 474 px.Should I create my own editor-style.css in the childtheme? I just want all images to have the same size as I upload, I don’t want WordPress to change it.
@photocrati Ok, well why would it not understand id=gallery if I named the gallery “gallery”?
I tried with ID, Page ID and name of the specific gallery but none of them works anymore.
I had a short code for my gallery before which showed thumbnails of many images.
But it doesn’t work anymore. Any idea what’s wrong here? http://cafestroget.se/galleri/This is what I got in my page editor:
[nggallery id=173]
[nggallery id=gallery]Forum: Fixing WordPress
In reply to: Search results to show everything before more-tagVoila, thanks!
Forum: Fixing WordPress
In reply to: Remove : (colon) from custom fields post meta keyI tried the functions here as well, http://www.wpbeginner.com/wp-tutorials/how-to-add-custom-fields-automatically-on-post-publish-in-wordpress/, but didn’t work.
I guess there something I must change here?:
add_action(‘publish_page’, ‘add_custom_field_automatically’);
add_action(‘publish_post’, ‘add_custom_field_automatically’);Forum: Fixing WordPress
In reply to: Remove : (colon) from custom fields post meta keyAbout the colon, I sorted it with
display:nonefor now, so will leave it until later 🙂In new posts I would like to add custom fields. But the value would preferably only be a one-word value, like “utskick” so I don’t have to insert loads of HTML-code in those custom fields where it is needed.
It shouldn’t be applicable for all posts, since the value would differs from category to another. Also, some of the value has more HTML-code and shows up in a popup-window, while others only display a textlink which directs to a new page.
Forum: Fixing WordPress
In reply to: Remove : (colon) from custom fields post meta keyHi,
So I tried a few methods but can’t make it work.
This is in content.php now:
<span class="prsample-link"><?php echo get_post_meta($post->ID, 'Pressutskick', true); ?></span>And functions.php
function mam_filter_the_meta_key( $list_item, $meta_key='Pressutskick', $meta_value='utskick' ) { $new_list_item = str_replace( 'utskick', '<a href="http://www.makeupedia.se/pr-policy#pressutskick">http://www.makeupedia.se/pr-policy#pressutskick</a>', $new_list_item ); return $new_list_item; } add_filter( 'the_meta_key', 'mam_filter_the_meta_key' );Forum: Fixing WordPress
In reply to: Remove : (colon) from custom fields post meta keyHi @vtxyzzy,
I just tried to replace the unique value with a link, but didn’t work.
Tested the str_replace in both functions.php and content.php, not sure I’m doing it right though but didn’t get any error.
My unique value for this specific field are here “utskick”.
$new_list_item = str_replace( 'utskick', 'http://www.makeupedia.se/pr-policy#pressutskick', $new_list_item );Forum: Fixing WordPress
In reply to: Remove : (colon) from custom fields post meta keyThanks again, I’ll try!
Forum: Fixing WordPress
In reply to: Remove : (colon) from custom fields post meta keyYes, I actually want the same key and value for new upcoming posts.
Well the value is a textlink and I thought it would be easier just to insert some kind of shortcode there which echoed same text for different posts.Haha sorry i’m not the winner of ‘best in explanation’!
Forum: Fixing WordPress
In reply to: Remove : (colon) from custom fields post meta keyThanks vtxyzzy, I’ll try the function soon!
Oh and also, it possible to add the same value to a specific key? It’s rather time-consuming to insert the same value for every needed post.
Forum: Fixing WordPress
In reply to: Remove : (colon) from custom fields post meta keyNot sure, it is not found in none of my functions.php. I only use
<?php the_meta(); ?>which output that code! (as find here http://codex.wordpress.org/Function_Reference/the_meta)I use TwentyFourteen Childtheme, but I kind of sorted this problem with
display:nonefor the span class post-meta-key. So the value displays what the post-meta-key should output without the colon 🙂Forum: Themes and Templates
In reply to: [Twenty Fourteen] Image sizes refuse to changeThanks @esmi