Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

plugin-development

add_rewrite_rule not working

add_rewrite_rule not working

Categories plugin-development Tags api, plugin-development, rewrite-rules, url-rewriting

Fatal error: Call to a member function query() on a non-object 3.6.1

Fatal error: Call to a member function query() on a non-object 3.6.1

Categories plugin-development Tags plugin-development

Is it safe to use PUT and DELETE requests

Is it safe to use PUT and DELETE requests

Categories plugin-development Tags http, plugin-development, rest-api

Custom slug in url for CPT and taxonomy

When you register cpt and taxonomies, remove the rewrite argument completely (use the default) and then go to your dashboard, and from Settings > Permalinks set permalink structure to (Custom Structure) and type /my-custom-slug/%postname% Screenshots: The setting: The result: save changes, and everything should be just like you want.

Categories plugin-development Tags plugin-development, rewrite-rules, url-rewriting

the correct way to use options from settings page [closed]

get_option( $option ) returns an array. You need to get access to that array, and then get the keys/values inside of it. Try this instead: $value = get_option( ‘my_option_name’ ); echo $value[‘my_option’];

Categories plugin-development Tags options, plugin-development

Get custom wp_query search results to appear on search.php

You are mixining the form display and the search logic. this is the first bad thing in your code. Second, the hook you have used are triggered everytime a query run, even the query inside your function, this bring to an infinite loop. So, first of all separate logic from display: function vkss_super_search_form( $atts=”” ) … Read more

Categories plugin-development Tags plugin-development, search, wp-query

Best way to handle a form post in plugin

Ok – I finally found a way to do this – and I believe it can be seen as a best practice… I wanted to post with jQuery from a form on the WP front end. Was a lot easier than I expected. First of all, make sure you have javascript to capture the form … Read more

Categories plugin-development Tags forms, plugin-development

Use different archive template for plugin

Create a new template in your theme named archive-encyclopedia.php. In your theme folder, copy the archive.php or index.php and name it archive-encyclopedia.php. Now you can make your custom changes to the new template. This template will be called instead of the default archive template as archive-{post-type}.php will be used before archive.php or index.php.

Categories plugin-development Tags archive-template, plugin-development, templates

How to create a custom search form and handler?

To change the search form, filter get_search_form. You get the form as a string here, and you can change it as you need. add_filter( ‘get_search_form’, function( $form ) { // Replace the form, add additional fields return $form; }); To change the search query to the database, filter posts_search. You get the query as a … Read more

Categories plugin-development Tags plugin-development, search

update_option() updating the option with an empty value?

update_option() updating the option with an empty value?

Categories plugin-development Tags options, plugin-development
Older posts
Newer posts
← Previous Page1 … Page57 Page58 Page59 … Page409 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress