Category: Uncategorized

Get only parent categories wordpress

Get only parent categories wordpress rest api and json method: Paste below code in functions.php /* parent categories via rest api */ add_action( ‘rest_api_init’, function

bxSlider current slide number display / total slides display

function insertCount(slide_curr,slide_count){ $(‘#slide-counter’).html(‘<strong>’+ (slide_curr + 1) +'</strong>/’+ slide_count); }; var slider = $(‘#slideshow’).bxSlider({ auto: true, pager: false, onSliderLoad: function (){ var slide_count = slider.getSlideCount(); var

WordPress REST API Custom Endpoint with URL Parameter

First you need to pass in the namespace to register_rest_route Like this add_action( ‘rest_api_init’, function () { register_rest_route( ‘namespace/v1’, ‘/product/(?P<id>d+)’, array( ‘methods’ => ‘GET’, ‘callback’ => ‘my_awesome_func’, )

How to Attribute?

Lorem ipsum is typically a corrupted version of De finibus bonorum et malorum, a 1st-century BC text by the Roman statesman and philosopher Cicero.
for Example: Website, Social Media, Blogs, ebooks , newsletter, etc.
Lorem ipsum is typically a corrupted version of De finibus bonorum et malorum, a 1st-century BC text by the Roman statesman and philosopher Cicero.
Copied!

Got a Question? Check out our FAQ Section.

Your action, our appreciation

It encourage us to give you more valuable content on website.