Applying automatic link class to images embedded to posts
I’d really love to be able to conditionally apply a CSS class to link elements of images embedded into posts, but I can’t seem to figure this one out.
I’d really love to be able to conditionally apply a CSS class to link elements of images embedded into posts, but I can’t seem to figure this one out.
Are all options variables fetched from the database and loaded to cache on each request?
I am working on a theme and I want to make it available for translating. I have not been including a text domain on translated text because I don’t know what the text domain is going to be yet. I figured, until I can come up with a name for my theme I should just use a function to output my text domain name instead of hard coding it on translated text.
There are 3 menus in my wordpress(3.5) now.
The situation is this: I’m using Video Thumbnails plugin to automatically get and set youtube/vimeo thumbnails as post featured image. The problem is that default youtube/vimeo thumbnail sizes are just a bit smaller than my theme main content width.
I want to know if it is a good practice according to WordPress theme or plugin development.
I am developing a WP theme with MVC approach. It only have index.php, functions.php and styles.css on the parent directory. So, I do not want to place page templates on it rather then I want to programmatically provide them from View classes while functionality from edit screen stays the same.
I’m trying to password protect a page but it doesn’t seem to be working. I’ve set the password for the page but when you navigate to it it just loads up like normal and doesn’t ask for any passwords.
In a previous question I asked how to add a column to the Posts page in the Administration section, and got a working answer. But now I need to know how to delete an existing column (e.g. the Date column) so that my customized Date column replaces it.
These are the functions I use in my theme to display the “entry-meta” which includes published and last modified dates (among others) of an article: