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)

0
votes
1answer
25 views

Embed image in post from external url

Is there a way in Wordpress that I can embed an image to a post when I want to include it like this: <img src="....." /> So I want to add this manually. Is this possible? Now, I get the URL, ...
0
votes
0answers
27 views

Random post works only for authenticated users?

My code in a file .php: <?php /** * Template Name: Random Post * * This is the template for random posts * * @package activello */ get_header(); ?> <h1 ...
0
votes
1answer
84 views

Retrieve post in AJAX Callback

I have a JS file that triggers a PHP callback file. The PHP file is supposed to work on the Post that is currently opened (wp-admin/post.php). I do not want the JS file to pass the post id though ...
0
votes
1answer
32 views

post_name is not stored until post is published… where should I store my slug until it goes live then?

important try as normal contributor user, not as admin see here I actually have it reproduced. Seems like a bug to me but whatever. I want users to choose their slug. Well, as you cannot store ...
2
votes
1answer
92 views

Code Blocks with WYSIWYG in blog post

Is it possible to format code in the wysiwyg editor, up to now I use Blockquotes to represent code, but my problem is that it does automatically line breaks, and I don't want to have random line ...
0
votes
1answer
19 views

List of authors posts minus very latest

I'm creating an authors.php page to display all the posts for the author clicked. But the list(s) needs to show the very first / latest post so I can style it diferently than the rest of the posts? ...
0
votes
1answer
66 views

Changing next and previous post link text

So I've been staring at the CodeX for about 10 minutes and can still not figure how to do this next and previous on a the post page. So I've added <?php next_post_link(); ?> and <?php ...
0
votes
0answers
28 views

Blog only showing one post even though more published

Why is my wordpress blog.php only showing one blog entry while I have two entrys in the blog at present and have checked both are published and they are and yes i do have my reading setup to my blog ...
1
vote
0answers
29 views

Prepending %category% onto default posts fails

I have been attempting to change the rewrite slug on the default posts. This is my post_type re-registering code (Taken from another post on StackOverflow) with the simple intent of changing the ...
0
votes
3answers
107 views

How to Mysql select a list of posts with meta_values AND all relevant categories?

I am trying to produce a list of posts and display a report which shows both some meta_values for each post, but also a list of all categories to which each post is attached. I am using the nifty ...
0
votes
1answer
46 views

How to get the postID inside 'content_save_pre'? Other hook?

I need to get the current PostID. I think in the function the postID is not existing yet. (Because save pre ...) add_filter('content_save_pre', 'getImageUrlOutOfContent', 10, 1); Am I right? How I ...
0
votes
0answers
20 views

Show posts with Ajax by category

In a custom post type (profile), I have categories (state 1 , state 2 , state 3) in a dropdown list. How can I show posts to select, and with any state change, then show posts by selected category ...
0
votes
1answer
26 views

Adding divs to WordPress page content

I am wondering if there is a way to add divs to specific elements in the WordPress page content? For example, I would want to wrap a div around content starting at a H2 element and ending after an ...
0
votes
0answers
12 views

Remove QE options and edit link from the title for a custom status and based on capability without js

I'm trying to remove the quick edit option and the edit link on the title of the post in the admin post list. I'm trying to do that on user capability and a custom status. Basicly when a post have ...
0
votes
0answers
38 views

“Restore from auto save” wiped out all post content

Faced this problem several times already, but now i need to understand what's happening - i have saved post, edited it and did not save. When i opened editor again it was suggesting to restore from ...
0
votes
2answers
76 views

How can i create an custom post template for an specific post category? [closed]

How can i create an custom post template for an specific post category in Wordpress?
3
votes
1answer
37 views

Wordpress 4.4 release produce blank white images when sharing a post on Facebook etc

After upgrading to 4.4, when I share a post via URL to Facebook, G+, the "Featured Image" shows as a blank white image on the Facebook post. Looks fine on the Wordpress site. Some testing shows that ...
1
vote
2answers
53 views

How to access featured image?

I saw this code as how to set a featured image for a post: // required libraries for media_sideload_image require_once(ABSPATH . 'wp-admin/includes/file.php'); require_once(ABSPATH . ...
0
votes
1answer
33 views

Change Post Title Edit Box

When editing a post, the title field displays the placeholder "Enter title here" (it's actually a label element that's made to look like a placeholder attribute, but whatever). I have a custom post ...
0
votes
0answers
14 views

Show authors own posts AND all other authors published posts in dashboard

In the Backend Posts section I'm looking to show only the logged in authors posts and all other published posts. e.g. Author 1 has 3 drafts and 1 published post. Author 2 has 4 drafts and 1 published ...
0
votes
1answer
28 views

Grab ID from post from plugin and use it to create an object

I want to create an object and set ID for this object like $p = new Product(87); I have this code within a plugin and I want to grab the ID of the custom post being showed: function getPostId(){ ...
-2
votes
2answers
121 views

Get post content by ID

How can I get a post's content by post id? I tried get_page('ID'); to show content but it does not work.
0
votes
0answers
21 views

Filter question list on substring of metavalue

On the admin page I want to filter posts based on meta values. I know using the pre_get_posts hook will allow me to filter based on specific meta values, however I want to filter on a certain ...
0
votes
0answers
18 views

Add column into post table

I need to add a flag in table post to generate a custom feed rss with external webapp. I would checked some posts with a flag (when I create a posts or when I edit them) and then I perform a query to ...
0
votes
1answer
54 views

Change post-slug using wordpress API? Change permalink of a post using php / jquery?

When calling wp_insert_post() see api there seems to be no possibility to set the post slug / the post permalink of the new entry. e.g. is there a way to check if: a string is possible to use as ...
0
votes
0answers
27 views

Code works on a page but not in a widget

I have some code that I am using with Advanced Custom Fields, I have created a Featured post type and within that there is a dropdown to select Posts. The code (between the lines) is then suppose to ...
0
votes
1answer
54 views

Audio post format with Advanced Custom Fields

I am using the Advanced Custom Fields plugin to create custom fields for post formats. I have a field that only displays when the audio post format is selected. This is a text filed where the user ...
0
votes
0answers
70 views

Related Posts in Genesis

I am trying to fix this related post snippet. If anyone experienced can help me out here. The issue is i want to show only current post category posts in this snippet. Secondly, i want to add an ...
1
vote
0answers
35 views

How would you check if changes were made on a post or page?

I have an post editor and a post viewer (the browser) that are running at the same time. I would like to show changes almost immediately in the browser when the post has been updated on the server ...
1
vote
1answer
27 views

What is the standard featured image size?

Is there a standard featured image size that Wordpress works best with? Or is the featured image sizing based on theme settings or requirements?
0
votes
0answers
28 views

Displaying friend's posts only

So I am using the WPMU Dev friends plugin which adds functionality for WP members to search for friends and to add new friends etc. There is a specific function defined in the PHP file which says it ...
0
votes
1answer
20 views

Change url-structure for wordpress pages - pages in strucutre not top-level

I use wordpress as a cms in which i use a some wordpress pages for standard content and posts for a wordpress blog. Now ive got a problem that the pages should not always be on the top level url and ...
0
votes
0answers
45 views

Post's URL changes automatically to category's URL. How to solve?

When I create a new post, I edit its URL to be something I like, let's say "My Post". I put this post in a category, say "Cat1". After I publish the post, the post itself is accessible from its ...
1
vote
1answer
20 views

Blog Posts in Custom Menu

I have a custom menu but would like to put specific posts on each one. for example: my menu consists of: cooking, beauty and style. How can i put all cooking posts on the cooking tab, and all beauty ...
1
vote
1answer
42 views

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

Dynamic archive of posts by date

I'm currently working on an intranet site for a big company and based on the project description, there will be a lot of articles posted everyday so this website will need various archive pages with ...
0
votes
4answers
58 views

wp_posts table: safely remove unused columns to save database storage

i search about it on google but didn't find any thing. I want to remove my wordpress wp_posts table's unused columns, to save my database storage... I know if table column is empty it will not ...
0
votes
1answer
29 views

Buddypress activity id

I am working on buddypress activity loop. I want to get current activity id or all activity parameters in entry.php file. but i am not able to get activity id. I am trying to use ...
1
vote
3answers
89 views

Sorting posts according to the term they belong to

I have a taxonomy called portfolio_cat with its categories.So now I need to create a slider with that categories as a title and their post items. How I can do that? What loop do I need to have so that ...
2
votes
1answer
18 views

New blog template to display only one category

I understand that I can copy my theme's default blog template and change the code to make it display only posts from one category in the theme's style. I tried tinkering with it, but to no result yet. ...
1
vote
1answer
20 views

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?
1
vote
0answers
27 views

CKEditor: Uncaught TypeError: switchEditors.switchto is not a functiononclick

Only the buttons Add Media, HTML and Visual show up after installing CKEditor for WordPress. In addition, encounter the following error while clicking to HTML or Visual by using the tool Inspect ...
-2
votes
3answers
86 views

How to get only post='product'

I am using this code to search products from a wordpress/woocommerce website. My requirment is URL will be like "http://localhost/wp/?s=D34&post_type=product" While s=D34 is search string. When ...
1
vote
2answers
34 views

How do I render all posts of the same category in same layout?

I have several posts that share the same layout but have different title and content. This layout is different from that on the site. I can use single.php to render them, but then ALL posts will ...
0
votes
0answers
28 views

Can a post use a subdomain or different permalinks at the same time?

The design on the website I am working on includes the users being able to pick the location of their website. To me it's like a glorified profile page, but one user can have many websites, and they ...
-1
votes
1answer
46 views

How to list all the posts in a personalized page? WordPress

Well, I created a custom page where I need it to return all the posts that have registered on the site, like the index. I tried to do in the normal way, by creating a custom page and assigning it the ...
0
votes
1answer
66 views

Send the post id to a front end edit post form

I try without success to send the post id to a page where a front end edit form is displayed by a shortcode and to insert the title of that post in the form. Where am I wrong? Any suggestions? The ...
0
votes
0answers
26 views

Use two categories and remove for first data

So I find id for two post categories, and now I'm trying to write php code in content-single.php in acesspress lite. This is that I obtained: <article id="post-<?php the_category_ID(7); ?>" ...
0
votes
0answers
57 views

Embedding Facebook in blog post not working

there once was this feature of embedding Facebook status posts simply by entering the URL see here or here (edited: apparently I misunderstood the content of that blog post). So now I am trying to ...
0
votes
1answer
73 views

How to filter out post from a category not its subcategory in wordpress dashboard

I have a category named "SERVICES" and I have added three subcategories for "SERVICES" category. I have added three posts for the category "SERVICES" and several posts for the subcategories. Some of ...