Posts are the core of WordPress. They store content, are categorized, and are expansible with meta. Posts are grouped by post type, and within their post type by taxonomy (though a taxonomy can span more than one post type).

learn more… | top users | synonyms (2)

-4
votes
0answers
24 views

Popular post display in WordPress [on hold]

// POPULAR POSTS BY PAGE VIEW function wpb_set_post_views($postID) { $count_key = 'wpb_post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count=='') { $count = 0; ...
1
vote
0answers
23 views

How do you display posts in a dynamic table?

I'm currently using a plug-in called SortTable Post. It automatically takes your posts and puts them into a table that you like. It's a great idea, but the issue is that the plug-in hasn't been ...
-1
votes
0answers
16 views

W3 validation errors from paragraph tags, why? [on hold]

I'm trying to validate my wordpress website using the W3 validator, but I get the following errors: Line 156, Column 428: No p element in scope but a p end tag seen. …ol for 7 years of my life ...
0
votes
0answers
18 views

How do I paginate posts page with $wpdb?

I am using this to get the posts: (...) if ( empty( $categories_defined) ) { $posts = get_posts($args); } else { global $wpdb; $posts = $wpdb->get_results( $wpdb->prepare( "SELECT * ...
0
votes
2answers
23 views

Using $wpdb to query posts with meta value containing current post_id

I am trying to to use $wpdb to retrieve a list of posts from the Database where the meta_value in the wp_postmeta table contains the current post_ID in inverted commas. eg. "10" The inverted commas ...
0
votes
1answer
45 views

Get post id on click of thumbnail

I am a little lost so I apologize if this question is vague and not organized well. I currently have a grid of thumbnails populated via Wordpress. I retrieve them by getting all the posts in a ...
0
votes
0answers
14 views

How to get posts and comments amount per hour, per year and per month?

I have this snippet: function count_user_comments_today( $uid ){ global $wpdb; $today = date('Y-m-d'); $tomorrow = date('Y-m-d', time() + 86400); $count = $wpdb->get_var( ...
4
votes
1answer
45 views

How to end the excerpt with a sentence rather than a word?

Here is the excerpt of the post on my home page. I want to end the excerpt with a sentence. In this case it is ' opportunities. '. I know how to modify the length but it won't do what i want. Here ...
-1
votes
0answers
22 views

My wordpress Site is hacked [on hold]

I have a wordpress site. Yesterday It was hacked. When I disable JS in my browser, my site shows, If JS is enabled a black screen shows with some message and strange music. I updated to lastest WP but ...
0
votes
0answers
30 views

YouTube Autoposting Link and Custom Field

I have a problem. I have plugin Automatic Youtube Video Posts. This plugin is importing videos to my wordpress. It works well, but in my posts this plugin does not put the Youtube link on the page. ...
0
votes
1answer
25 views

Get posts of ONE taxonomy term of custom post type

I am going crazy here as I assume it is quite simple, but I just cannot get it to work. I have a custom post type called 'portfolio' and a taxonomy called "locations'. In the taxonomy I have various ...
0
votes
2answers
39 views

Get first comment link on the post itself

I have this function and a link to a post: <?php foreach ($results as $id) { $post = &get_post( $id->ID ); setup_postdata($post); <li><a <?php href="<?php ...
0
votes
0answers
16 views

Why are my wp urls showing page not found?

I recently changed a page slug url in the edit area and saved it from flood-maps to floodmaps. There was an issue here so I then deleted the page in trash too and started a new one with the same name ...
0
votes
1answer
25 views

Archive Page for Custom Post is not Working in WordPress

I have registered a custom post type "tutorials" with the following snippet. <?php /* Template Name: Tutorial Archive */ get_header(); ?> <div id="content"> <div ...
0
votes
1answer
22 views

Limiting post list by taxonomy

I currently have the following code pulling the 10 latest posts from a specific category, I would like to filter those posts to a certain custom taxonomy which I've set up called article type. What ...
0
votes
0answers
26 views

Can't get pagination to work

I'm trying to create pagination on a blog post page where one page displays 13 blog posts and then displays some links to go to another page. Now just to get it working, I'm using this code: <?php ...
0
votes
0answers
29 views

Show post last modified date twentyeleven theme

Here is the code snippet i'm using to display last modified date in my twentyeleven child theme since i frequently update my posts but the problem is search engine is not displaying my post last ...
0
votes
1answer
15 views

Can't get full post title if there a spaces in title

I want to make a custom query that checks the post title and puts in a different URL like this: <a href=bing.com/search?q=<?php echo single_post_title(); ?>>Blablabla</a> But it ...
0
votes
1answer
10 views

Where to insert the other site image url for our wordpress post

I am scrapping contents from my others sites into my wordpress site, i did all and below is my insert query $my_post = array( 'post_title' => $my_title, 'post_status' => 'publish', ...
0
votes
2answers
11 views

Post titles and thumbnails as links to custom post types?

I am struggling with the php structure. How do I need to rewrite the code to get the links to the titles and thumbnails of the custom posts? <ul class="thumbnails"> <?php $pfportfolio = ...
0
votes
1answer
18 views

Why does Wordpress search returns same number of results for every search query?

I am hitting a brick wall, I am searching something on a site I am building and on every search it returns 10 results when I know in the index in relevanssi it shows more for the term I am searching ...
0
votes
1answer
25 views

Order posts alphabetically: how to set order=asc in mysql query?

I have this function: global $wpdb; // adjust the query to fit your needs $posts = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_type = 'post' ...
0
votes
1answer
47 views

Getting an alphabetic post list with two letters onclick on letter

I have a website in Wordpress and a page with a list with letters like this: A B C D E F G H I ... This shows me all posts with the letter A for instance. That's nice, but I want it to make it ...
0
votes
0answers
22 views

Get url/link to latest comments in a post

I have a post list in Wordpress where people can see the most recently commented posts. They will appear above the list. That's fine, but now, I have 300 comments on the same posts and I don't want ...
0
votes
2answers
30 views

links to posts not working on homepage

I have created a nice homepage where the posts are organized into two columns. Only somehow, in creating this, I must have erased the actual code that tells the posts to link to the corresponding ...
0
votes
0answers
12 views

Keep image captions attached to image when spliting post content

I have a WP site running with the following code used to split and display the post images and content in two seperate columns - <div class="wrapper portfolio-page-single"> ...
2
votes
2answers
94 views

Get all Youtube video's from posts and embed them on a different page

Is this possible? I want to let it check all my posts to see if there is a embedded Youtube video. If so, I want to show that on a different page, embedded and linking to that particular post... I ...
1
vote
2answers
21 views

Unautop / Sanitize content added to a post through a plugin

I am using the SimpleReach plugin that adds some content to every post using the content hook. The content that is being added is <!-- SimpleReach Slide Plugin Version: {{srslide_plugin_version}} ...
0
votes
1answer
76 views
+50

select post preview image from nextgen gallery

My website has a theme that uses the preview images in the post overview pages. However these images are neither automatically selected nor did I select an image in the past. However, even if I try ...
1
vote
1answer
31 views

If modified on same day, show only time

I have a date on each post and comment which shows the date of placement. If I edit it, it shows me the date of the post and the modified date. That's fine, but now, I want to show only the post date ...
0
votes
0answers
18 views

WP_Query retrieve custom posts but not the post showing

I am developing a custom post type which shows releated posts which are within the category which is working perfect but I cant seem to get the right query to make it not show the current post which ...
0
votes
1answer
19 views

How to show a featured image inside a post in only 1 single category

Been walking around with my problem now for days and i decided to just go ahead and ask it. My theme is set that a featured image is not shown in a post, which is what i want. The problem is, in 1 ...
0
votes
2answers
69 views

Wordpress Child Category Display All Posts

I am creating a Wordpress page where all my posts in the child categories of team are displayed in a grid. I got this working with the below code. The formatting and general layout is great however it ...
-1
votes
3answers
38 views

$attachment->post_title not displaying title

I have this little piece of php. $attr = array( 'class' => 'bigImg', 'alt' => trim(strip_tags( $attachment->post_excerpt )), 'title' => ...
1
vote
0answers
32 views

Wordpress not opening posts with only numbers if permalink is post_name

Someone knows why this happens? For instance, I have a post called 1987, but it does not open it when I click on the link. When I use a different permalink structure, it opens it. Why is this and how ...
0
votes
2answers
34 views

Wordpress Post Grid

I am trying to make a custom grid for my Wordpress posts. I have been searching the web however all the tutorials I have found utilize a column method where it just alternates between the columns. For ...
2
votes
1answer
28 views

Require a featured image to publish post

I have a multi author WordPress blog. I'd like to allow publishing of a post only when a featured image is set. How can that be done?
0
votes
1answer
26 views

WP_Query get posts from custom posts by category

ive been playing around with this for ages and for some reason I cant get it to work. This is from within the single post page of a custom post type... Basically I am getting the category of the ...
0
votes
0answers
23 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
2answers
31 views

Posts and order

newbie here with quick question, looking at all my pages if I click on quick edit I have the chance to place a number on the field order and set an order on which one should appear first,then second, ...
0
votes
1answer
20 views

Find And Add Category to Posts

My WordPress site is a mess. Previously, it had 80+ categories, with 1-2 sub-categories. After creating blueprint for this site (I'm restructuring the site completely), I have new 6 categories and ...
0
votes
0answers
24 views

upload/insert images into post suddenly stopped

During the process of creating a blog post, the ability to upload and insert images into the post stopped working. I'm using Upload/Insert > Add Media > From Computer and/or Gallery > Insert Into ...
1
vote
1answer
30 views

Get all images in post and comments like Twitter before post title

I want to know if it's possible to get all the images that are in a post and his comments, make them a thumbnail and put it before (or in a sidebar or something) the post title to show, just like ...
1
vote
1answer
28 views

Can't update old posts 3.5.2

Background: I'm working on a customers site that I haven't build myself. The site works pretty ok, when I got it the wp_header and wp_footer was missing and the javascript files were all linked to ...
1
vote
0answers
10 views

Using ajax on editing a category edit page?

add_action ( 'edit_category_form_fields', 'tag_category_fields'); add_action ( 'edited_category', 'save_tag_category_fields'); add_action('wp_ajax_my_action', 'tag_category_fields'); function ...
0
votes
0answers
17 views

how to organize a table of contents in wordpress with search functionality?

I need to make a table of contents something like chapter 1 Mission objectives Information chapter 2 materials methods chapter 3 Findings Discussions My problem is that I need to ...
0
votes
0answers
29 views

Remove Posts Without Comments

I would like to have any posts that contain 0 comments be deleted on a regular and ongoing basis. My blog is currently using a combination of a cron job and the following snippet added to functions ...
0
votes
1answer
32 views

Display last updated date genesis child theme

Since I frequently update posts so it’s crucial for me to display last modified date instead of post published date like following image. Its because I want search engine to display my post last ...
0
votes
1answer
19 views

How to Include a common category in a custom Category Search

I was wondering how to solve this issue. This is my Query: $query = new WP_Query( array( 'posts_per_page' => 6, 'orderby' => 'date', 'order' => 'DESC', 'category__not_in' ...
0
votes
1answer
28 views

How To Add One Tag to Multiple Posts?

I have nearly 1500 posts in my wordpress blog. Before moving to a new design, I need to tag all these posts with one tag 'old'. How can I do this? I tried to bulk edit posts and it will always go only ...

1 2 3 4 5 40