Andrew Norcross
Forum Replies Created
-
Forum: Plugins
In reply to: [Genesis Design Palette Pro - Google Web Fonts] Add Google FontHey there, first off you don’t want to modify the actual plugin files, since they’ll get wiped out whenever an update is released.
I’ve written the code to add your font here: https://gist.github.com/norcross/216407037d09ad49ae7aefc5e9582cdb
you’ll want to put that in the theme functions file or a separate functionality plugin.
Forum: Plugins
In reply to: [YOURLS Link Creator] Google Analytics Pluginare you asking if mine will support his, or the other way around?
Forum: Plugins
In reply to: [YOURLS Link Creator] Security Errorare we talking about the same plugin? mine isn’t called “Better YOURLS” and shouldn’t contain those strings.
Forum: Plugins
In reply to: [YOURLS Link Creator] cURL error 28:It looks like it may be a hosting issue, since a cURL error is often tied to the version of cURL that’s running or changes in the firewall settings.
Here’s a thread explaining the issue in a different plugin: https://ww.wp.xz.cn/support/topic/wp_remote_get-failure-curl-error-28/ that outlines a few things to check.
Forum: Plugins
In reply to: [YOURLS Link Creator] SSL support in YOURLS?my apologies for the delay. I’m not 100% sure what that’s the case, I’ll need to debug this myself and see what the issue is.
Forum: Plugins
In reply to: [YOURLS Link Creator] Duplicate Shortlink RefAhh, I see now. There’s two functions in the plugin. One to manually insert the link, and one to filter the core function. So in this case, it’s operating twice. I’ll add a check in the next release to make sure it isn’t duplicated. Thanks!
Forum: Plugins
In reply to: [YOURLS Link Creator] Duplicate Shortlink Refare you running any other plugins that may add this? perhaps Jetpack?
as for the function names, I’m aware there are a few that are more generic in nature.
Forum: Plugins
In reply to: [Content Update Notification] Notification for custom post typeWell, is there some way you can pull a list of the post types that are set up the way you want? However you can get an array of the post types you want to have set up, feed that into the function above.
Forum: Plugins
In reply to: [Content Update Notification] Notification for custom post typeYes. you can use the
cun_content_typesfilter. Currently the default is posts and pages, and the standard way would be to add them. But if you’re adding numerous custom post types (which is odd, but that’s neither here nor there) you would want to get a list of them by using theget_post_typesfunction (using whatever criteria fits your need) and then feeding that into the function.https://codex.ww.wp.xz.cn/Function_Reference/get_post_types
Here’s an example.
function rkv_add_cun_type( $types ) { // Get a list of all the available post types. $list = get_post_types( '', 'names' ); // Loop the names and add to the array. foreach ( $list as $single_type ) { // Check for the post type, then add it. if ( ! in_array( $single_type, $types ) ) { $types[] = $single_type; } } // Return the post type array. return $types; } add_filter( 'cun_content_types', 'rkv_add_cun_type' );Forum: Plugins
In reply to: [YOURLS Link Creator] problem in bbpressthere’s currently no logic set up to have any actions on the front end trigger a YOURLS creation. to confirm, you’ve selected the
topicpost type in the settings?Are you wanting to create a public URL shortener for people? So they could add their own links, unrelated to the actual WP site, and shorten them?
Forum: Plugins
In reply to: [YOURLS Link Creator] Yourls url for achivesonce the taxonomy work is complete, I’m going to see if I can use the existing functions I have in the plugin, or possibly make a new one to get the link for an archive page.
Forum: Plugins
In reply to: [YOURLS Link Creator] Yourls url for achivesI am actually working on the taxonomies now as we speak. for
wp_shortlink, it’s intended to be used with a post ID, so I’m not sure there’s a way around that. that’s a core function, not YOURLS doing it.Forum: Plugins
In reply to: [YOURLS Link Creator] Yourls url for achivesI can look into this a bit more, I haven’t had much free time to look.
Forum: Plugins
In reply to: [YOURLS Link Creator] ERROR: The YOURLS API is currently NOT accessiblewhat is the URL of your YOURLS installation?