wp_set_object_terms returns 500 error when called through AJAX function
wp_set_object_terms returns 500 error when called through AJAX function
wp_set_object_terms returns 500 error when called through AJAX function
Modify post image in full size
Can’t update or install plugins in WordPress, php unidentified index
This is more of a CSS question than a template question. The class “row” is adding a max width of 75rem on your template. Looks like this in the inspector: .row { width: 100%; margin-left: auto; margin-right: auto; margin-top: 0; margin-bottom: 0; max-width: 75rem; } That’s coming from this style sheet: https://tuberadar.nl/wp-content/themes/gateway/app.css?ver=5.1.1 Without rooting through … Read more
You’ll need to expose both the Custom Post Type (CPT) and the taxonomy you are attaching to that CPT that you’d like access to. This is a great article that helped me the first time I used it. https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-rest-api-support-for-custom-content-types/ If you are trying to expose the CPT and the Taxonomy to search, it’s something similar … Read more
You can achieve this using filter provided in Astra: add_filter( ‘astra_has_custom_logo’, ‘__return_false’ ); The above filter disables logo on the website. You will have to add this filter in your child theme’s functions.php file inside if conditions of pages where you want to hide the logo.
$_GET[‘title’] in WordPress
It turns out the value that points to the PDFs’ locations on disk is stored in the wp_postmeta table, under the meta_value field. For example a media item located at site.com/app/uploads/2019/06/whatever.pdf would have a meta_value value of 2019/06/whatever.pdf. To change the location of all PDFs I first found the IDs of all PDFs (from the … Read more
WordPress search query, how to modify the sql
WordPress files break if I edit them, but adding a closing PHP tag fixes it