J M
Forum Replies Created
-
Forum: Plugins
In reply to: [YOURLS Link Creator] “A reminder, your YOURLS install cannot be public” ??Your YOURLS install must be set to private .
Naturally, this refers to the admin page wherever your YOURLS install is, NOT this WordPress plugin.
Forum: Plugins
In reply to: [Really Simple CSV Importer] Date FormattingYou will need to get your feet wet by jumping into
rs-csv-importer.php
and adding your own code. Here is a snippet I’m using to give you an idea:if ( $this->column_keys[$key] == '_cm_dob' ) { if ( ( $timestamp = strtotime( $value ) ) !== false ) { $meta[$this->column_keys[$key]] = $timestamp; } else { $error->add( 'invalid_date', sprintf( __( 'Invalid date format "%s".', 'cm_lang' ), $value ) ); }
You would need to change
_cm_dob
for the column header you’re using.Forum: Plugins
In reply to: [CMB2] Accessing Option on MultisiteThat’s brilliant! Much obliged for your help, and yes, things are working nicely! Thanks for expanding the ever-useful Snippets Library!
Forum: Plugins
In reply to: [CMB2] Accessing Option on MultisiteFor the record I have changed my prefix accordingly.
Would you mind giving me a bit more insight into how to get those filters going? I can’t find anything in the CMB2 repo or Snippet Library on them. Cheers.
Forum: Plugins
In reply to: [CMB2] is_multisite() via 'show_on_cb'Thanks. Obviously needed a bit more sleep or at least a closer look at the docs…
Forum: Fixing WordPress
In reply to: .ht access fileNo. You will need to have access to your server. Normally your host gives you credentials to access via FTP. Does any of this make sense?
Forum: Fixing WordPress
In reply to: .ht access fileYou should endeavour to look for it in the directory where
wp-config.php
is installed. It is named.htaccess
. If you are using an FTP client, you may need to show hidden files (see the docs for your client).Forum: Fixing WordPress
In reply to: java scriptA cursory glance tells me you need to reference jQuery using
jQuery
(rather than$
) since in WP it runs in no-conflict mode.Instead of using inline javascript in your template, you might consider using
wp_enqueue_script
.Forum: Fixing WordPress
In reply to: How to work on WP if the Webspace is pointing to a different PlaceYou will want to read Moving WordPress and Changing The Site URL.
I’m not sure if this plugin will do exactly what you need it to, but check it out.
Forum: Plugins
In reply to: [CMB2] Sanitizing data outside metabox contextThat’s awesome. Thanks. I’ve implemented it and it works though I’ll do some more testing to make sure I’m passing it everything I need to pass it. I do have another question, though: How can I go about returning a message to the user if
save_fields
ignores a particular value for a key if it doesn’t pass the sanitization check?Forum: Fixing WordPress
In reply to: comment number iconFor a CSS only solution you can use a selector like this:
.cp-widget-item .meta-comments { display: none; }
This will target all comment icons in areas with the class
.cp-widget-icon
.Forum: Fixing WordPress
In reply to: Header image won't loadThe link that the images leads to shows us a 403 – Forbidden error. There are some links on that page that may help you.
Forum: Fixing WordPress
In reply to: i cant repair my database..If this happened to me, I would restore the most recent DB backup I had.
Forum: Plugins
In reply to: [Posts 2 Posts] Admin Columns not showing upA horrible bit of amateurishness! I’d written ‘admin_columns’ rather than ‘admin_column’ ??