Questions tagged [posts]

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).

1,739 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
-1
votes
1answer
34 views

How to make diferent post formats for different pages?

I am making a word press theme. I want different post format of blog page and category page! Here is an example of what i am trying to say http://zeequotes.com This web site have different post ...
-1
votes
2answers
3k views

WordPress is creating a lot of draft posts

My WordPress install (with the following plugins) randomly creates Draft posts whenever I load the posts page. Is there a way to find out which plugin is doing this (aside from deactivating)? Has ...
-1
votes
1answer
31 views

Tag page that displays specific posts

How would I go about coding a generic tag.php page that displays all the posts with a specific tag? For example, if I navigate to example.com/tag/your-tag, it should display all posts with the tag "...
-1
votes
1answer
2k views

Excerpt all post content Content Same Size without word cutting off

On my category page there are list of 24 posts with title and excerpt content. To display specific lengths of content, I am using substr function. Now the issue is that each post excerpt content are ...
-1
votes
1answer
15 views

The page that displays Posts on homepage

I want to know the page responsible for displaying the blog posts in WordPress. Where I can probably expect to find the SQL query and post rendering so I can edit some stuff by myself.
-1
votes
1answer
29 views

How to make “my posts” page

How to make a section, or better is something like a shortcode, to filter only posts added by me (or other user, depends on who is logged in)? And how to hide this page (section) if is nobody logged ...
-1
votes
2answers
169 views

Get posts after calculating meta key

I have 2 meta fields for the posts, eg. meta_value and meta_count. Both are numbers. I want to divide meta_value by meta_count and based on the results I want to fetch the top 10 posts. So for ...
-1
votes
1answer
41 views

After the local installation of an old WP website I can see the homepage but I can't access to the articles, why?

I have import on my local webserver a backup of a website made using WordPress but I am finding some difficulties with PermaLink The main problem is that if I use the permalink setted as Article Name ...
-1
votes
3answers
15 views

How to have 2 posting pages on a blog

It is possible to have 2 posting pages on a page? I have a static home page and I want to create 2 more pages for my blog which are "News" and "Recent Projects".
-1
votes
2answers
857 views

display last post modified date in genesis child themes

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 ...
-1
votes
1answer
219 views

Next and Previous buttons are not showing on home page for post

I made a theme from PSD to WordPress but the "next"-"previous" buttons are not showing on home page. Here is the code of single.php: <div id="primary" class="site-content"> <div ...
-1
votes
1answer
105 views

Add News Feed to bespoke website, only to one page on whole site

I have built a bespoke website that is not currently managed by WordPress. For SEO purposes and to announce special offers etc, my client would like to add a News Feed to the site. To save me having ...
-1
votes
1answer
843 views

FIND and REPLACE wp_posts AND IGNORE custom post type mysql query

does exists some MYSQL query for FIND and REPLACE wp_posts AND IGNORE all other wordpress and buddypress posts (buddypress-docs) and also custom post type = portfolio ? I want to find and replace only ...
-1
votes
1answer
37 views

How to make post stick to its own div

A Wordpress theme has 4 boxes in front page. Each box has its own posts. please see the screenshot http://prntscr.com/1231qw I want to let the user edit the post using admin panel and when he save ...
-1
votes
1answer
25 views

my custom_post_type does not appear in my web page…how?

i created a custom_post_type and created a post in there and it does not appear in my web page... how can i call it to where i want? normal post are called like this: <?php if ( have_posts() ) : ...
-1
votes
1answer
62 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 ...
-1
votes
1answer
45 views

How do i retrive a post from a custom post type

How can i retrive a post from a Post Type were "distributie_seriale" is a relationship field. Ex: I add an Actor to PostType - actors ( Add post) next I add an Serial on PostType- serial ( Add ...
-1
votes
1answer
1k views

How to redirect image attachment to its original post

I'm making a slider that is getting images from attachments in the post. I am trying to rewrite the url for the post so that if someone pastes the direct url to the attachment, it'll go the post ...
-1
votes
1answer
260 views

How to implement default comment section in theme template?

My home.php is associated with my blog page, as opposed to rest of site which is just a cms. I want my blog page to render the comments ability, an archive of older posts, tags, blogroll, etc. Right ...
-1
votes
1answer
60 views

Wordpress post enumeration

I am using wordpress as a quick fix for a blog for my site. I am using a short loop in an external page (i got the links to use the wordpress set-up correctly): query_posts('p='.$thisPost); //$...
-1
votes
2answers
1k views

How to add a widget area between blog posts in Genesis Framework?

What's the code for adding a widget area between my blog posts? Specifically I want to put one widget area inbetween after the first 3 posts of my blog?
-1
votes
1answer
984 views

How can I get on the same row two post of different categories?

Let me explain better, I have two categories and I want to show a page with two columns one for each category, after this I like to show in the same row each post of each category on each column, just ...
-1
votes
2answers
180 views

Error 404 blog/page/2/

Hello i have problem. I can't view /blog/page/2/ i klick "_posts_link" and error 404 shows me Blog Page -> home.php <?php $paged = (get_query_var('paged')) ? ...
-1
votes
1answer
544 views

WordPress More tag doesn't work on Single post

When I add read more on my post (single.php) I can see < !--more-- > in HTML editor and when I publish it, I don't get to see it on my website. I already tried several plugins to solve this ...
-1
votes
1answer
109 views

query_post or single-[cpt].php?

php query_posts( 'post_type=listing'); Or single-listing.php? According to my reading I have presumed that to display a custom post type all I need to do is copy my single.php and rename it ...
-1
votes
1answer
48 views

Shortcode returning specific content of a post

I'm currently building a plugin to display specific part of post after accepting verification code. Can a shortcode return a part of a post? I mean: Bla bla bla [shortcode postID="100"] Special bla ...
-1
votes
2answers
80 views

Wordpress Post Content Display

In my post page, used gallery on post plugin to display images , while i m trying to retrieve the post content -used the_content , but showing the plugin images also. how i get text editor content ...
-1
votes
2answers
602 views

Title displaying multiple times

I'm facing a problem where my title is being displayed multiple times. Using the following code the page title 'News' is displayed 10 times, the same number as the number of posts I've elected to ...
-2
votes
1answer
130 views

Is there any point to using wp_unique_post_slug?

From what I can tell, wp_insert_post will automatically append a -# to your post slug. So why does wp_unique_post_slug exist? Is it just there for legacy purposes or is there still a good reason to ...
-2
votes
1answer
32 views

Last updated post in wordpress homepage first position

Please let me know how to display last updated post in wordpress homepage first position. Regards, LeeryFox
-2
votes
2answers
69 views

How to make category for word post_content

I have a problem! I have my website with wordpress. I only have one category and I want to have 5 categories. The problem is that I have published more than 7000 post. How can I use a word of the ...
-2
votes
1answer
36 views

Listing category and its posts one by one

I want to show all category and its posts as below in a page, for a dynamic website. Please help -category a -post a1 -post a2 -post a3 -category b -post b1 -post b2 -post b3
-2
votes
1answer
35 views

How does Wordpress add the comments and comment form to posts

I have created tabs in my single.php file. I would like to move my comments from the bottom of the posts to the comments tab. I have can't seem to find how to do this. I have copied everything from ...
-2
votes
1answer
38 views

Need fixing generic posting on facebook

The problem becomes apparent when we ''post'' something on facebook. For example right now if I write: '' I love this website, check it out at www.5starpma.com'' we get the image of a male model. What ...
-2
votes
1answer
146 views

Canot save post if any meta box was empty

I need to dont save new post from custom post type if any meta box empty. So we must check the meta if empty, we mus show me " You must fill all meta box value before save post" else if all meta ...
-2
votes
3answers
966 views

CSS code for “inserting a custom post divider” after each post

I want to add a custom post divider to separate my posts. I'm using the Enfold theme in WordPress.org. I've searched for the answer to my question but I don't understand the coding language. I ...
-2
votes
2answers
786 views

sub posts to parent post

How to make a sub posts like this example http://www.samsung.com/us/mobile/cell-phones/SGH-I717RWAATT Overview Features Specs Gallery .... with link structure just like it! ....cell-phones/SGH-...
-3
votes
2answers
75 views

$post->ID calls for current page, but what is the code to call for any new page created and published in WordPress?

While there may be another or better way to do it, all I need is this last snippet to make this do exactly what I need. So, I hope anyone here can and is willing to help me get it working as I need? ...
-5
votes
3answers
45 views

What template file is used by default for posts?

So I'm attempting to create a single page Wordpress theme and right now I'm using my index.php as the page they will initially see. In my index.php I use The Loop to create a bunch of a tags that ...

1
31 32 33 34
35