Make a full-width wordpress page

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

How do I create a WP endpoint that retrieves all custom post types that have a tag?

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

Change upload URL by mime type

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