Tyler
Forum Replies Created
-
Hi @surferking,
Thank you for getting back to me. Could you please try using this bit of code in place of the one provided to you by ChatGPT? Once this code has been added, then you should be able to search for those pretty links and its actual URL will be used instead of the default one (site.com/?pretty-link=slug):
add_filter('post_type_link', function($post_link, $post) { global $prli_link, $prli_blogurl; if($post->post_type == 'pretty-link') { $pretty_link = $prli_link->get_one_by('link_cpt_id', $post->ID); if(!$pretty_link) { return $post_link; } $post_link = $prli_blogurl . PrliUtils::get_permalink_pre_slug_uri() . $pretty_link->slug; } return $post_link; }, 10, 2);
I hope this helps!
Kind regards,
Hi @surferking,
Thank you for getting back to me, and I’m glad to hear that did the trick for you. I’ll reach out to our development team and see if we can look into the possibility of making the pretty links public or add an option for it in a future release. I believe they’re not public by default to avoid being added to the sitemap which some users may not want for their affiliate links.
Kind regards,
Hi @surferking,
It’s nice to chat with you again. Could you please try adding the code I provided in the other thread you have open and see if that allows the pretty links to show up within that search?
I hope this helps!
Kind regards,
Hi @surferking,
Thank you for reaching out. Could you please try adding this bit of code either to your child theme’s functions.php file or using a plugin such as WP Code, and see if that allows the pretty link custom post type to show up in RankMath’s Instant Indexing feature?
add_filter('register_post_type_args', function($args, $post_type) { if($post_type == 'pretty-link') { $args['public'] = true; } return $args; }, 10, 2);
If you’re using WP Code to add in this bit of code, you’ll want to ensure that the “Code Type” field is set to “PHP Snippet” and that the “Location” field underneath the “Insertion” section is set to “Run Everywhere”.
I hope this helps!
Kind regards,
Hi @andrejdivi,
Thank you for reaching out. All of your pretty links are stored in your site’s database, so those links won’t get lost when the plugin is deleted/re-installed. Could you please try deleting the Beginner Edition of the Pretty Links plugin on the Plugins page (Wp-Admin -> Plugins -> Installed Plugins), and download the free version of the plugin by searching for “Pretty Links” under Wp-Admin -> Plugins -> Add New?
Once the plugin has been re-installed, you’ll be able to receive updates for it going forward.
I hope this helps!
Kind regards,
Hi @revkev5064,
Thank you for reaching out. Could you please try going through the steps outlined in our Common reasons your links are redirecting to a 404 error and see if one of those suggestions helps to get those pretty links redirecting correctly?
I hope this helps!
Kind regards,
Hi @roosites,
Thank you for getting back to me. It looks like a JavaScript error is occurring on the page if the pipe character is entered as its encoded equivalent which is why the tab isn’t showing up correctly.
Since you have access to this site, would it be possible to add an ID to each of those tabs and then change the target URL of the pretty link so it links to the ID instead?
Currently, the ID in the pretty link is “tabs” followed by the pipe character to indicate which tab should be opened, but if you added an ID to the fourth tab (say something like “tab-4”), then you should be able to link to it like this: https://riqi.org/solutions/health-information-exchange/currentcare/patient-resources/#tab-4
I hope this helps!
Kind regards,
Hi @mdnijsse,
Thank you for getting back to me. It looks like you’ve opened a support request in our ticketing system so we’ll go ahead and assist you there to prevent duplication, but the issue you’re experiencing with clicks not being recorded is most likely due to the pretty links being cached by Cloudflare.
Kind regards,
Hi @mdnijsse,
Thank you for reaching out. Just to ensure I’m providing you with the right information – were there previously 90 more clicks on the other site before you migrated that data over to the new site?
Kind regards,
Hi @roosites,
Thank you for reaching out. Could you please try replacing the pipe character (|) with its encoded equivalent (%7C) within your pretty link’s target URL and see if that allows the redirect to work correctly?
I’ll provide a link to Google’s documentation that goes a bit more in-depth on how to handle these types of special characters here: https://developers.google.com/maps/url-encoding
I hope this helps!
Kind regards,
Hi @travelanddo,
Thank you for reaching out. It sounds like you’re trying to be more of a merchant looking to get other affiliates to promote your products rather than becoming an affiliate marketer yourself. Pretty Links is primarily geared toward affiliate marketers who’re wanting to shorten the URLs provided by their merchant. To set up an affiliate program, I’d recommend looking into a plugin such as Easy Affiliate or AffiliateWP.
I hope this helps!
Kind regards,
Hi @maderemark,
Thank you for reaching out. It looks like our support team is already helping you with this through our ticketing system, so I’ll go ahead and mark this thread as resolved. However, if you have any other questions please feel free to open another thread or support ticket and we’d be happy to assist.
Kind regards,
Hi @chekki,
Thank you for reaching out. We don’t currently have a built-in way to clone/duplicate pretty links at this time I’m afraid, but I’d be more than happy to add this in as a feature request so our development team can discuss the possibility of implementing this functionality.
Kind regards,
Hi @bowenac,
Thank you for reaching out and sharing your findings with us. I’ll get in touch with our development team and see if we may be able to change the data type on our ID columns, but unfortunately, the changes you made will revert back to the original int(11) data type the next time the plugin updates when our migration scripts run.
The ID you’ve shared for the post is extremely large though, 9004111222131878 is in the quadrillions but this should almost never be reached. I’m wondering if the AUTO_INCREMENT value on the wp_posts table was changed at one point which is why that number is so high for newly created posts.
You might try seeing if there’s a way to fix those post IDs so they map up to the number of posts you have published on your site. Once the IDs are back in order, you shouldn’t hit that limit when a new pretty link is being created.
I hope this helps!
Kind regards,
Hi @rakxzo,
Thank you for reaching out. I’m afraid we’re unable to support Pro-related features for the plugin on these forums. If you haven’t already, please open a support request on our website and our team will be able to assist you there.
Kind regards,