wp.media.view.ImageDetails – Save settings as HTML5 data-* attributes for image
What I finally want to achieve are extra settings added to the Image Details box, that will be stored in the image <img> tag as data-* attributes
What I finally want to achieve are extra settings added to the Image Details box, that will be stored in the image <img> tag as data-* attributes
I have created a custom Post Type, and Registered it.
I am working on developing a plugin, and I am trying to add a line of text to the bottom of the page, I see there are two actions that seems reasonable, wp_footer() and get_footer(). wp_footer sounds like it may more suited towards code that needs to go at the very end of the page (like JavaScript files), but get_footer didn’t have any documentation on its wordpress codex page. Which should I use for something like this?
I’m using the WooCommerce plugin with WordPress and within my theme I’d like to list all categories within a navigation menu with PHP.
What is the best way to get an experienced WordPress developer take a look at my plugin and give constructive criticisms? I have written code to solve some of my questions on this site, and I think they could be useful to others too. However, since they would by my first public WordPress plugins, and I have seen many not-so-great examples in the public WordPress directory, I would like to know “where I stand”, and how I can improve my plugins. I have read the list of best practices, and still need to apply some of them, but I would also like an answer to the more general question “Is this a good way to solve this problem?”
I have a custom post type for slideshows that creates a paginated post and each slide is a separate page. The data for each slide is saved in the custom fields and each slide has a title set saved in the custom field with key slide{$i}-title ($i being the slide number, for example slide1-title).
I have a WordPress database with over 2 million posts. Whenever I insert a new post I have to call wp_set_object_terms which takes over two seconds to execute. I came across this post that recommends calling wp_defer_term_counting to skip the term counting.
I am not sure why but I have used get_posts() to query for some data. Then I used setup_postdata() … I think its used so that I can use functions like the_permalink() etc with the new post data?
Short. I want ”large’ images compressed by 90%, and ‘medium’ to be by 60%. Has many af you know, sometimes larger images suffer from high compression, but other small images don’t.
In web design, a key design element is the container that may contain various other content and blocks and is styled in CSS.