The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
52 views

How to assign classes to all elements?

Is it possible to assign classes to elements of certain type? For example, all paragraphs in the post body or comment body should have class="paragraph", all unordered lists in post body should have ...
0
votes
1answer
23 views

wordpress add field to post_class

I need to add a custom field to my article post but not sure how to add an additional class to it. Currently the classes get pulled through like this <?php post_class($classes); ?>. However I ...
0
votes
1answer
74 views

Help with output of post classes using apply_filters

I’m new to scripting, this is a plugin I'd like to modify to output post classes. When I try using: apply_filters( 'post_class', $page->post_class ) it only outputs array=" ". Do I need an ...
0
votes
1answer
55 views

How do I create a sticky sidebar?

How do I give the three posts here different div classes? I'm working with twitter bootstrap and I'm trying to give the first post and the last one <?php query_posts('category_name=Menucard'); ...
0
votes
0answers
13 views

Moving Plugin Code into a Theme - Class Declaration - what hook should I use to create new instance?

I'm planning on moving a Plugin Inside a Theme I'm creating. The Plugin currently utilizes a Class to declare and set up the Custom Post Type and all of the other functionality of the plugin itself. ...
0
votes
0answers
40 views

How make modular WP plugin based on OOP?

For example I have "my-plugin" plugin created using class: class My_Plugin { public function __construct() { } /** * Other code where I creating plugins admin pagec etc. */ } ...
0
votes
0answers
40 views

How to remove a class from a post_image div?

So for a post i know how to remove a class by using function remove_class( $classes ) { $classes = array_diff($classes, array('hentry')); return $classes; } ...