Articles of posts

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 […]

Is there a query string for edit.php to show all posts that have no custom taxonomy terms?

I wrote a plugin Premium Posts that registers a custom taxonomy called sms_premium_posts and adds a column to the post list table in the WordPress administration area. In that custom column, if a post has been marked Premium, the term Premium links to a filtered list of only premium posts. This link is generated using […]

Display Only Certain Category In a Custom Page Template

I have a Page in WordPress that is a Blog Page Template. Now my issue is that it displays ALL the posts. I only want it to display posts assigned to a certain category How do I do that? Here is my blog.php page: I guess you have to edit it here right? /* Template […]

Possible to add a statement to a core file?

I would like to add one line to a wp core file. Basically on the ‘edit.php’ page, just right above <?php include(‘./admin-footer.php’); I would like to add an php include statement… include(‘./custom-file.php’); The custom-file is located inside a plugin, not a theme… so if I write it inside my plugin function.php, the url will be: […]

Single Post in Tab/Slider

I have managed to code tab system that fetches different categories and custom taxanomies on a home page and shows relative posts. Now, is it possible that when someone clicks on one of the posts in some specific tab, then the post’s content can be shown in the tab itself, instead of taking the user […]

Count number of posts of current month

I am trying to echo the number of posts for the current month from all categories but it isnt working. <?php $month = date(‘m’); $year = date(‘Y’); $countposts = get_posts(‘post_type=post&year=’ . $year . ‘&monthnum=’ . $month . ‘&cat=3’); echo ‘New posts ‘ . count($countposts); ?> category 3 is a parent category and has many sub […]

Send POST request to WordPress to make a new post

I want to make new posts on my WordPress blog using HTTP POST sent to post.php. I was searching for the parameters I should pass but i didn’t find any useful information yet. Can anyone give me a reference to the parameters I should send?

Loop don't work within single.php page

I have this code below within the loop <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class=”new-posts-form”> <div class=”new-posts-img”><a href=”<?php the_permalink(); ?>”></a><a href=”<?php the_permalink(); ?>” title=”<?php the_title(); ?>”><?php the_post_thumbnail(array(100,80)); ?></a></div> <div class=”new-posts-title”><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></div> <div class=”new-post-description”><?php content(’11’); ?></div> <div class=”new-post-add-date-time”><img src=”<?php bloginfo(‘template_url’); ?>/images/tb_clock.png” /><?php the_time(‘F j, Y’); ?> […]

Get current post data into array?

I’m trying to achieve a similar effect to get_page($id), but with the current post acting as the argument for get_post(). Something like this pseudocode: get_post($this=>ID); . Seems simple, but I can’t find the it in the docs.