Articles of posts

Display Posts with template on a Page

OK, I’m sure some WP pros here will think this is a dumb question, and I’ll probably get some flak, but I have actually read plenty of documentation, and I just don’t think I’m even going in the right direction, anymore. I am somewhat experienced with PHP, but i have little experience with wordpress. My […]

How to get date of post when using wp_get_recent_posts()?

I get the latest posts this way: $args = array( ‘numberposts’ => ‘2’ ); $recent_posts = wp_get_recent_posts( $args ); Then I loop through them and get information about the post this way: $recent_posts[0][“post_title”] How can I get the date the post was published?

How safe is it to delete old posts edits to save database space?

After this question: https://wordpress.stackexchange.com/a/93902/27148 There is an answer that suggests deleting past edits directly from database, which would be nice, because I could create queries to delete specific edits only. But, Is this safe? Why?

Custom Post Type archive

Hey all first off im a WP newbie so go easy! Ive been searching for a couple of days now to see if I can find the answer to this but cant get anything definitive. I have a custom post type called ‘documents’ and a corresponding archive called archive-documents.php. When I click on a custom […]

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 id=”post-style”> <h1 class=”title”><a href=”<?php the_permalink() ?>”><?php the_title(); ?></a></h1> <?php the_content(); ?> </div> <?php endwhile; else: ?> <h1 class=”title”>Ups…</h1> <p>… pedimos desculpa mas nenhum <em>post</em> foi encontrado!</p> <?php endif; ?> <p align=”center”><?php […]

Number of displayed posts

I have tried many things to solve this problem. So I have a plugin which displays projects assigned to users in a widget. It displays projects as posts. The problem is that it only displays 5 projects on the page. I am sending a code which display posts: $projects = get_posts(array(‘post_type’ => ‘projects’)); One guy […]

Get all custom post types excepted some…

I stack since a few hours now and I’m sure that this is not so complicated. I would like to get all custom post types into this $posts = query_posts( $query_string.’post_type=POST-TYPE1,POST-TYPE2,POST-TYPE3&post_status=publish&posts_per_page=-1&’ ); I know that there is this function: $post_types=get_post_types(”,’names’); And I have some Post Types which I want to exclude. E.g. “Portfolio”. So how […]

Two Custom Post Types with Identical Articles Competing for the same Slug

I have created two custom post types, each with it’s own slug. Each custom post type contains some articles with the same title. So ideally I would have . . customposttype1/mainarticle/ customposttype2/mainarticle/ Instead I get . . . customposttype1/mainarticle/ customposttype2/mainarticle2/ <– with the extra 2 on the end The permalinks are set to “postname”. Any […]

How can I determine where I want to edit in the backend (server)

My boss has a wordpress site and he wants me to give him the ability to add videos from a site called vzaar. I see the form, I see the main PHP file for editing posts. Unfortunately I can’t track the form down to the backend file. How can I know which file I want […]

One post out of more than twenty shows odd picture (from post) in the header

(WP 3.5.1) My blog has a header picture showing its name. But for some reason exactly one post shows a picture in the header which is actually used within the post itself. Frequency of character combinations for three languages I don’t even know how I would acomplish such feat if I wanted – given that […]