Andrew Norcross
Forum Replies Created
-
are you looking for a shortcode, or just an actual function setup to call? And is this going to be in the WP editor or in a template file itself?
oh, and thanks about the donate link. fixed it 🙂
there isn’t a shortcode display, but there is a function to output the URL anywhere you want. if you call
get_yourls_shortlinkwith the post ID, it will return the shortlink if one exists. you can pass a second parameter oftrueand it will echo out instead of returning. does that help?Forum: Plugins
In reply to: [YOURLS Link Creator] The API call returned a 410 response code.a 410 code means your API endpoint isn’t available at all
Forum: Plugins
In reply to: [YOURLS Link Creator] Add Google Analytics Event Trackingno problem at all. and yeah, YOURLS needs to be it’s own install, since it’s on a separate URL and has it’s own database and logins and whatnot.
Forum: Plugins
In reply to: [YOURLS Link Creator] Add Google Analytics Event TrackingThis plugin only handles the URL creation inside of WordPress. the link itself is tracked inside the YOURLS install itself.
that said, they have a plugin library as well which includes some GA tracking. I don’t know which would be the best for your situation but here’s the list: https://github.com/YOURLS/YOURLS/wiki/Plugin-List#g
By default, the plugin only recognizes posts and pages. There is a filter
cun_content_typesto modify that. Example below.function rkv_add_cun_type( $types ) { // Check for the post type, then add it. if ( ! in_array( 'your-post-type', $types ) ) { $types[] = 'your-post-type'; } // Return the post type array. return $types; } add_filter( 'cun_content_types', 'rkv_add_cun_type' );I need a little more information. What kind of content (posts, pages, etc). Does any of the other email functions on the site work, i.e. new user emails or password resets?
Forum: Plugins
In reply to: [YOURLS Link Creator] Shortlink for external website linksthe plugin isn’t built to store multiple links, or links for external sites. you would need to create the links in YOURLS directly and enter it into your custom field.
Forum: Plugins
In reply to: [YOURLS Link Creator] Hook to create Yourls link?fantastic! glad I could help.
Forum: Plugins
In reply to: [YOURLS Link Creator] Hook to create Yourls link?fantastic! in the admin.php file of the plugin, there is an action called
yourls_after_url_savewhich passes the post ID and the newly generated short URL. That should cover all your use cases for using the shortlink and passing it to whatever other functions you’ve got.Forum: Plugins
In reply to: [YOURLS Link Creator] Hook to create Yourls link?How comfortable are you with writing code? There are some built in hooks and filters to access the process at different stages.
Also, there is a checkbox on the settings page to auto-generate links on both publish and when scheduled content posts, so that may also solve the problem.
Forum: Plugins
In reply to: [YOURLS Link Creator] Sometimes shortlink seems to be fired after sharingThat is my understanding, yes
Forum: Plugins
In reply to: [YOURLS Link Creator] Sometimes shortlink seems to be fired after sharingJust a heads up, this finally appears to be resolved.
Forum: Plugins
In reply to: [Comment Blacklist Manager] Does Comment Blacklist Manager work on multisite?If you network activate it, it will be on every site.
Forum: Plugins
In reply to: [YOURLS Link Creator] Create YOURLs Link increments by 1it’s a setting on the YOURLS side as to what generates the URL slug. there’s a “randomizer” plugin that handles that, which you can find here: https://github.com/YOURLS/random-keywords