Articles of posts

how can I put an image in a post with original size

whenever I put an image into a post, it always appears in smaller size than original, only after clicking on the image it opens in full size, how can I manage to post original size images in post?

Developing a secure front end post editing form

I want to add a front end post editing functionality to one of my WordPress sites. I found a few plugins that do this, but they don’t fits all my needs, so I decided to adapt an existing solution to develop a my own plugin that will return with a shortcode a front end editing […]

Looping through posts per category gives same posts for each category

For a specific section on my website I loop through some categories and get the three latest posts in that categorie and list them. Like so: <?php $categories = get_categories(array(‘exclude’ => ‘1, 4, 9, 10, 2899’)); ?> <?php foreach ($categories as $category) : ?> <div class=”subject”> <h3><?php echo $category->cat_name; ?></h3> <ul> <?php $args = array( […]

How to permanently delete a post meta entry?

delete_post_meta seems to merely clear out the value for a given post meta key. It doesn’t really completely delete the row. I’ve been digging a lot, but I can’t seem to find any function out there that deletes the post meta entry completely. Please, could anyone point me in the right direction? Do I have […]

Articles are text-only in any “Category” instead of HTML

I run a WordPress blog at and a lot of articles are using HTML codes (mainly <h*>, <p>, <a> and <figure>). Those tags are correctly displayed on the homepage and inside any blog post. But when you browse a category (as ), then the articles are texts only. Same when you’re doing some […]

Automatic post deletion

I’ve built a system where I have 2 options – lifespawn of draft and lifespawn of published post (integer which marks days). If post is being published, exact date-time of publish is saved as postmeta, also lifespawn is added to that time and that value is saved to database as expiration date-time, same thing with […]

WP_Query in functions.php overrides global $post object, even with wp_reset_query()

I’ve written a function that grabs all posts that are drafts and puts them as a dropdown in my toolbar for easy access to complete. This works just fine. The problem is that it seems to mess with my global $post object, specifically when called in my post/page editor. So if I’m in my post […]

Why can posts never have a number as the link?

Here’s something interesting I noticed today – it is not possible to name a post a number – no matter what theme you use, and even if you name a post a long number that has no tag or post-name or category name conflicts, you will still get 2015 or 1826628 renamed as 2015-2 or […]

Receive each week the number of posts published

I’m trying to create an email alert every monday at midnight that will send the number of posts published the past week on the site. I created 2 variables: $post_published_to_date which is the total count of the posts on the site (I assumed here that the site was just created to there aren’t any posts […]

Understanding and using metaboxes in posts

I am developing my first theme that is not dependent on a parent theme but I am running into some back-end problems. I’m trying to add a metabox to all posts that are being written. This question is quite broad in that it covers quite a lot of features. So if that’s preferred I will […]