2
votes
1answer
41 views

Limit function to specific post category

I have a function that wraps images in a custom div. It's placed in functions.php and modifies all posts. I'd like to know if there's a way to only apply it to posts in a certain category. Here's ...
0
votes
1answer
92 views

Make a vertical dynamic list of posts in alphabetically order and in columns [closed]

I have a page that lists all the posts from a given category of an custom post type dynamically. I do this with a plugin that list posts and a shortcod and with css i created 9 columns where they are ...
0
votes
1answer
32 views

Background image in posts

I'm trying to get the featured image to display in the background-image of each standard post-format post. So I'm successful in grabbing the image and was able to make it 100% of the width and height ...
0
votes
1answer
50 views

Display pages from specific page template

Okay I have found the following code on line, which seems to be working and displaying all of the pages using the page_library_html.php template. This code only shows the title of them though. Can ...
1
vote
0answers
22 views

invisable position element [closed]

I have a weird ghost like element on my page which blocks other elements. Visually its positions alright, but it is larger then it appears. If did a hour of inspecting and can't find any source that ...
0
votes
0answers
100 views

background image in post with images on top

I am trying to create a post that consists of a background image with images over the top of it. The idea is that the top images are links overlay on the background. I have used the following css: ...
0
votes
2answers
225 views

How to make different custom post layouts?

I am new to wordpress, and have encountered some difficulty in making my own custom layouts. I'm using _S framework (underscore.me) as well as Custom Post Templates plugin. I'm using custom fields ...
0
votes
1answer
118 views

Custom colors for post rows based on post meta value

I'm trying to have the post background colors change depending on a meta value for the specific post type rather than using the post status. Looked everywhere and can't find a solution. (perhaps there ...
1
vote
1answer
141 views

Add a class to post title if a link ends with a certain extension

I am using a Page Links To plugin that allows me to link the post title to an external web page, rather than to the content of the post. And I link some of the post titles to external pages, and ...
-1
votes
1answer
50 views

How to display my categories in a list (to a post, not the sidebar)?

i want to display my categories to a post like a list. i have this (parent- and child-) categories: - Sports - Football - Basketball - Toys - Dolls - Lego - Books for example one ...
0
votes
1answer
78 views

How can i put image to come first than the title?

im editing my posts and when i create one, it comes: TITLE IMG CONTENT and i want it like this: IMG TITLE CONTENT ------------------got it--------------------------- <?php if ( ...
0
votes
1answer
43 views

Is there any way to stylize articles one by one?

I'm new in wordpress thing and im trying to edit my posts. my problem is: I'm editing posts in index.php ---------index.php---------- <?php get_header();?> <div ...
1
vote
1answer
730 views

How to add tags (custom taxonomy) to post class css?

I am trying to figure out how to add my custom taxonomy for tags to the post class css when I already have added the custom taxonomy for categories. The code Im currently using to add the category ...
1
vote
2answers
337 views

Latest 5 posts (custom post type), each post different CSS

While creating our portfolio i'd like to make a dynamic header with the latest 5/6 featured images in a row. All these posts come out of the 'apps' custom post type. <div id="header"> ...
0
votes
1answer
46 views

Font shows up as Arial instead of Times [closed]

I am the webmaster of Palo Alto High School's online publication, The Paly Voice. We're using Wordpress, and for some reason occasionally chunks of stories change fonts. Here is an example. I ...
0
votes
1answer
48 views

displaying the categories post

I have this php code below for displaying the post from the specific categories. <ul id="sliderx"> <?php query_posts('category_name=slideshow&showposts=10'); while (have_posts()) : ...
0
votes
2answers
2k views

adding a custom css class to post

essentially I need to be able to add a class to a post when it show in the list (say index.php) so when in the back end you can say oneCol, twoCol, threeCol and it will then output this within the ...
0
votes
1answer
105 views

Locally change the font family [closed]

I'm using the standard Wordpress theme (WordPress Default 1.6 by Michael Heilemann). The standard font for my articles is a sans-serif font. I'd like to display, for a sentence only, a serif font ...
1
vote
1answer
108 views

How to make classes for posts?

Thanks in advance. I'd like to have posts with different colored borders and headers. It would be nice to choose a category of the post (red, blue, black, etc.) and have it change the class for that ...
0
votes
1answer
59 views

YARPP php question

I'm trying to put a border under related_posts() ,it works, but the border is showing even when the there are no posts. How do I make the border show only when there are related posts to show?
0
votes
1answer
342 views

Right align a youtube video

I'm trying to right align (class="alignright") a YouTube video AND allow my client to edit the surrounding text in the future using the visual editor. I simply added class="alignright" to the tag ...
0
votes
1answer
69 views

Is there a way to specify an extra class for a post or page with no title?

If I do a post or a page with no title, I'm left with an empty h1 tag at the top of the post/page. I'd like to either get rid of the h1 in these cases, or else be able to add an extra CSS class to ...
0
votes
1answer
640 views

Custom post type and body_class: Remove “blog” class

I am using body_class(); to style different sections of a wordpress site by their body class. Page styles descend from .page-template, blog styles descend from .single-post and/or .blog etc. I have ...
0
votes
2answers
3k views

Having Trouble Styling a Table in a Wordpress Post

I am trying to style a table in a Wordpress post, but am having difficulty getting it to work. I have set the post to HTML-editing mode and can get some of the styles to take, but not all. (To be ...
5
votes
2answers
3k views

How to add a “last” class to the last post in loop.php?

I need to add a "last" class to the last post that appears in loop.php. Can someone tell me how to accomplish this?