Hot answers tagged

2

This is expected WordPress behavior. "content" data is WordPress post content data and stored with all the HTML tags that where added in the post. I'm not sure what pieces of information you are trying to retrieve, but I think the HTML tags could work to your advantage. If you were to retrieve the meeting ids then you could filter all the "tr&...


2

Anytime you want to use JavaScript in WordPress, you should enqueue it. Save the JS as a file, ie clickbutton.js inside your theme folder: document.getElementById("defaultOpen").click(); Then in functions.php, enqueue that file: add_action('wp_enqueue_scripts', 'wpse_371294_enqueue_js'); function wpse_371294_enqueue_js() { wp_enqueue_script('...


1

which wordpress api could give me a list of all the articles as json? You're already using the right API, just remember it's paginated so you need to request the second/third page/etc in a separate request. It'll pass how many apges there are in the http header I found a particular api doing the above same task as point (1.). is it a standard one? You ...


1

get_permalink() (which is used by get_the_permalink() and the_permalink()) returns the "ugly" URL if the post is not published, e.g. draft or scheduled, but you can use the following function instead which temporarily sets the post status to publish so that we'd get the pretty URL. function get_future_permalink( $id ) { if ( $post = get_post( $...


1

You can change the block to "edit as html" via "more options" and set the soft hyphen, then switch back to "Edit visualy".


Only top voted, non community-wiki answers of a minimum length are eligible