boriskamp1991
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Tax ToggleThe developers here need to know more right? very curious!
Thanks for the answer!Forum: Plugins
In reply to: [WooCommerce] change upsell posts_per_pageyeah, thats what I though, however
add_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );
shows cross sells on the cart page? or do they use the same template?I still don’t know how to set the posts per page to
3
instead of the standard-1
(unlimited) though for either cross sells or upsells
the code from you first answer did not workForum: Plugins
In reply to: [WooCommerce] change upsell posts_per_pageThanks for you reply,
yes I am aware, I want the owner to be able to select his own product to show underneath a product in
content-single-product
Should I do this with theupsells
orcrosssells
?either way, I tried your code and still get outputted four items (I have selected four items in the backend for the single product to check this.
related products wont work as they are chosen by category etc
Forum: Plugins
In reply to: [Media Library Assistant] set title to be filename stripping charactersYou sir, are awesome!
It’s awesome how much effort a plugin author can put into helping the users.
this is working, I will donate to you David! thanks!
Can I donate to you personally?Forum: Plugins
In reply to: [Media Library Assistant] set title to be filename stripping charactersThanks for the extensive answer David! really appreciate it.
I lost you at the last part with the
initialize
part.
I now have:
add_filter( 'mla_mapping_updates', 'mla_mapping_updates_filter', 10, 5 );
with next:
add_action('init', 'mla_mapping_updates_filter');
(this is possibly wrong, but I thought this is the way to connect it to the function.and the function you posted in your last reply underneath it:
function mla_mapping_updates_filter( $updates, $post_id, $category, $settings, $attachment_metadata ) { //left this part out for overview reasons }
all in the functions.php
is this correct?Forum: Plugins
In reply to: [Media Library Assistant] set title to be filename stripping charactersWow, thanks for your great reply David!
according to your topic link I came up with this as I do not want an extra plugin if not really neccesary:
function mla_mapping_updates_filter( $updates, $post_id, $category, $settings, $attachment_metadata ) { /* * If $updates[ 'post_title' ] is set, some mapping rule * has been set up, so we respect the result. If not, * use whatever the current Title value is. */ if ( isset( $updates[ 'post_title' ] ) ) { $old_value = $updates[ 'post_title' ]; } else { $post = get_post( $post_id ); $old_value = $post->post_title; } /* * Clean up the Title value. If the cleanup has changed the value, * put the new value in the $updates array. */ $new_title = str_replace( array( '-', '_', '.' ), ' ', $old_value ); if ( $old_value != $new_title ) { $updates[ 'post_title' ] = $new_title; } // Only replace ALT Text if Image Metadata is present $old_value = get_metadata( 'post', $post_id, '_wp_attachment_metadata', true ); if ( ! empty( $old_value ) ) { // Find the current ALT Text value if ( isset( $updates[ 'image_alt' ] ) ) { $old_value = $updates[ 'image_alt' ]; } else { $old_value = get_metadata( 'post', $post_id, '_wp_attachment_image_alt', true ); } // Replace the ALT Text value with the clean Title if ( $old_value != $new_title ) { $updates[ 'image_alt' ] = $new_title; } } return $updates; }
I put in in my functions.php
it’s not working unfortunately, do you know why?
I have setTitle
,ALT Text
andCaption
totemplate:([+file_name+])
with priorityEXIF
.obviously Im missing something but I have no clue yet.
another question, what exactly do you mean by
// Only replace ALT Text if Image Metadata is present
, does that mean it only replaces the ALT if it is populated?To be clear< I would like Title, ALT and Caption all replaced with the cleaned up filename when mapping.
Thanks David!
Forum: Fixing WordPress
In reply to: can't update pages after new WP versionHi Tara,
Ive done a completely new local install of WordPress, I only installed ACF Pro and copied the theme from my original site to this new one and activated it.
so in other words, everything is brand new, except for the theme.
Now when I try to update a page, I still have the same white screen of death, this time without ANY error notice….
some more info:– When I enable twentyfifteen theme and ACF Pro, and and create a field group to appear on all pages, and create a new page with custom fields in it, it works!
here’s an important one:
– With my custom theme and ACF Pro enabled, no field groups assigned to pages (just basic title and WYSIWYG editor), creating and updating pages works…..Again, I have this on multiple sites now, so it’s not just a one website situation.
Any further clues?
Forum: Fixing WordPress
In reply to: can't update pages after new WP versionI did some debugging and found this error:
Notice: De aangeroepen constructor methode voor WP_Widget is verouderd sinds versie 4.3.0! Gebruik __construct() in plaats daarvan. in /Users/boriskamp/Documents/Local Websites/remons_barbershop/wp-includes/functions.php on line 3457 Warning: Cannot modify header information - headers already sent by (output started at /Users/boriskamp/Documents/Local Websites/remons_barbershop/wp-includes/functions.php:3457) in /Users/boriskamp/Documents/Local Websites/remons_barbershop/wp-admin/post.php on line 242 Warning: Cannot modify header information - headers already sent by (output started at /Users/boriskamp/Documents/Local Websites/remons_barbershop/wp-includes/functions.php:3457) in /Users/boriskamp/Documents/Local Websites/remons_barbershop/wp-includes/pluggable.php on line 1207
any clues? it’s all in the WordPress files, I don’t understand this at all, how can this happen?
I tried manually overwriting the server files with clean new ones as well and nothing helps.
I need this fixed, this is unacceptable to my clients, just because of an updateForum: Fixing WordPress
In reply to: RSS feed driving me crazyIs anybody able to help me out here? would be greatly appreciated!
Thanks!Forum: Fixing WordPress
In reply to: RSS feed driving me crazyIs anybody able to help me out here? would be greatly appreciated!
Thanks!Forum: Fixing WordPress
In reply to: Internet explorer validation messed up?Forum: Fixing WordPress
In reply to: Weird links below each post…..Sorry if I insulted you, but I am doing my best to understand.
that shortlink can be seen in y twitter widget (right sidebar of my site).And, indeed when that shortlink is checked trough the security sites, it results in spam, but when I enter my full url, all is green and ok
I will see if I can remove that wtitter post, its a useless one anyway, just a testout when I first used twitter :p
but back to my problem,
any thought?thanks Krishna
Forum: Fixing WordPress
In reply to: Weird links below each post…..Yeah i found the one you typed above.
but that shortlink is the link to my site….. so nothing wrong right?Forum: Fixing WordPress
In reply to: Weird links below each post…..Thanks again!
but what is the problem? line 375 is my twitter update right?
was a bit shocked still, so I did change my secret keys and password just to be sure.Forum: Fixing WordPress
In reply to: Weird links below each post…..well, I still got the problem as described in teh first post:
at the bottom of each post there is automatically generated link that I cant seem to trace.
I want to get rid of it, do you guys have any idea?????
Here is my RSS feed so you can check it outcheck out my rss feed, and check the bottom of each post.