broraxel
Forum Replies Created
-
Wonderful. Thanks a million!
Cheers,
AxelHi again,
Just noticed this post was marked as resolved, but I would still very much appreciate if you could help me out making the excerpt clickable.
BR,
AxelHi,
Thank you for your quick response.
You’re right, I’m using one of your snippets to filter the output and add the custom field. Although, i recently changed it to show the title of the parent page instead of the custom field, but it mainly the same snippet.
add_filter( 'display_posts_shortcode_output', 'be_display_posts_custom_fields', 10, 6 ); function be_display_posts_custom_fields( $output, $atts, $image, $title, $date, $excerpt ) { // Get our custom fields global $post; //H?r h?mtade den custom fields fr?n posten, den ?ndrade jag s? den h?mtar parent page title... /*$adress = esc_attr( get_post_meta( $post->ID, 'adress', true ) );*/ $parent = get_post($post->post_parent); $adress = $parent->post_title; // If there's a value for the custom field, let's wrap them with <span>'s so you can control them with CSS if( isset( $adress ) ) $adress = '<span class="vara-fastigheter-adress">' . $adress . '</span> '; // Now let's rebuild the output. $output = '<li class="vara-fastigheter-container"><div class="vara-fastigheter-left"><div class="vara-fastigheter-image">' . $image . '</div><div class="vara-fastigheter-title-area">' . $title . '</div><div class="vara-fastigheter-ort">' . $adress . '</div><div class="vara-fastigheter-utdrag">' . $excerpt . '</div>'; // Finally we'll return the modified output return $output; }
Thank you!
Ah, of course! Thank you, and thanks for great plugins!
Cheers,
AxelForum: Plugins
In reply to: [Ajax Upload for Gravity Forms] Duplicates uploaded imageI understand. I tried changing like you suggested and it works like a charm. Thanks a lot!
Axel
Forum: Plugins
In reply to: [Ajax Upload for Gravity Forms] Duplicates uploaded imageHere’s a link to a testform i just made
https://www.podiumfastigheter.se/axeltest/
I don’t know if this helps you get closer to a solution, but at least you can see what I mean.
When inserting the form I thought it might have something to do with the ajax not being set to true, but this form has ajax=true and it still duplicates an already uploaded file.
Feel free to play around with it, I’m still testing so I will remove all files later.
Axel
Forum: Plugins
In reply to: [All-in-One WP Migration and Backup] Restoring database…Ok, so I got it working by doing the steps I mentioned above. I think one of the issues may have been the size of the database, it was pretty big, and possibly that I was trying to migrate gravity forms tables which apparently are MyISAM as opposed to wordpress’ InnoDB? Dunno… Anyway, problem solved, for me at least. Hope the rest of you get sth out of this as well.
Cheers,
AxelForum: Plugins
In reply to: [All-in-One WP Migration and Backup] Restoring database…Hi Pim!
Thank you for your reply!
I’m currently restoring the db, but what I’ve noticed so far is that the website itself seems to migrate properly, but the user table and maybe a few other tables of the database is not getting imported. The site is up and seems to be working, but I can’t login. Which means that I’ll have to try exporting the missing tables and then import after migration, so I can login. That should do it, I hope. Keep you posted.
Axel
Forum: Plugins
In reply to: [All-in-One WP Migration and Backup] Restoring database…I’ve tried everything I can think of, but it just keeps freezing on restoring database, please advise!