Posts

Showing posts with the label plugins

Rewrite url for custom post type and custom taxomonies in wordpress

Rewrite url for custom post type and custom taxomonies in wordpress I have custom post type and custom taxonomies. Currently I am using custom category in my menus and url of that is. https://example.com/customposttypeslug/categories1 https://example.com/customposttypeslug/categories2 https://example.com/customposttypeslug/categories3 So i want to change this to as below https://example.com/categories1 https://example.com/categories2 https://example.com/categories3 I have gone through many articles on stack and google but i didnt find how to remove customposttype slug from url for custom post type. Here is the code for creating custom post type and taxonomies add_action('init', 'shopify_theme_app_cpt'); function shopify_theme_app_cpt() { register_post_type('apps', array( 'labels' => array( 'name' => 'Shopify Themes & Apps', 'singular_name' => 'Shopify Theme & App', ...

Process Jekyll content to replace first occurrence of any post title with a hyperlink of the post with that title

Process Jekyll content to replace first occurrence of any post title with a hyperlink of the post with that title I am building a Jekyll ruby plugin that will replace the first occurrence of any word in the post copy text content with a hyperlink linking to the URL of a post by the same name. I've gotten this to work but I can't figure out two problems in the process_words method: process_words post.data['url'] The current code works but will replace the first occurrence even if it's the value of an HTML attribute, like an anchor or a meta tag. We have a blog with 3 posts: And in the "Hobbies" post body text, we have a sentence with each word appearing in it for the first time in the post, like so: I love mountain biking and bicycles in general. The plugin would process that sentence and output it as: I love mountain biking and <a href="https://example.com/link/to/bicycles/">bicycles</a> in general. # _plugins/hyperlink_first_word_...

An unexpected error occurred wordpress plugin install

An unexpected error occurred wordpress plugin install Hi there i am facing this issue on my wordpress dashboard when i tried to install new plugin from WordPress Repository it keep saying that Something went wrong with the plugin API. and when i tried to click on plugin name to get info it gives me this error An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. i need help for this i am using bluehost hosting and domain from godaddy and recently i transfer my domain to bluehost. Thanks Regards By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.