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
38 views

how can I add data to posts that can be retrieved by WP Rest API

I used Custom Field Suite to add fields to all WordPress posts, but the field data does not show when I retrieve post data through the WP Rest API using /posts on a stand alone site. Is there a way ...
0
votes
0answers
18 views

Convert comments to posts and make it clickable on comment section

I am currently working on quite a big project for a client – he wants comments to behave like a post when a user clicks on them. I have read about some similar functionalities but nothing really like ...
0
votes
1answer
43 views

Show posts in archive or homepage and sort them by number of views

i am using wordpress default loop to show custom posts types on home page. Currently it is showing latest post. I need to show Products with most views first. Please tell me how can i do this. My ...
0
votes
0answers
66 views

Post/Edit/Delete Post From Frontend… How?

I've been given the challenge (challenge for me anyhow) of creating a way for website users to post/edit/delete posts based on their user name. I'd actually prefer to code something like this myself ...
0
votes
1answer
31 views

Getting post content without the navigation

I'm having a issue I don't seem to be able to figure out how to get around. I'm using the_content(); to get post content for a single post, but it returns a navigation item with it. I would like to ...
-1
votes
1answer
33 views

Different layouts for different post types in wordpress?

What is the reason behind allowing developers to create page templates so easily and not allowing the same for posts? I have 2 custom post type named Mathematics and Mechanical I made it using the ...
0
votes
0answers
20 views

When I SAVE/PUBLISH my long post, it gets truncated

When I SAVE/PUBLISH my long post (more than 2000 words), it gets truncated for random number of words (sometime it saves 1200, sometime 1220 and other numbers) but never saves the complete POST. What ...
0
votes
1answer
78 views

Show only top 3 posts from 3 categories in order on home page

This function will show the last 3 posts from any category on front page: // Only top 3 posts from CHR category add_action('pre_get_posts', 'ad_filter_categories'); function ...
0
votes
0answers
23 views

Cannot access $post object - no matter what I try

Here is the code: <?php // Plugin Name: Lohman Supply Product Hover class LohmanProductHover { public function __construct() { add_action('wp_loaded', array($this, ...
0
votes
0answers
34 views

Content Section Custom Anchor Not Working

I purchase WP theme (Techwise) and I found an issue with content menu sidebar in post page. that content not working as same (toc) Table of Content. it's not working with Arabic letters but working ...
-1
votes
1answer
22 views

WordPress Page Column Problem [closed]

The sidebar which should be on the right side is being loaded below the content. How do I move the sidebar to the default position? Here's the link
0
votes
0answers
71 views

Publish specific category posts to specific pages

I'd like to have many different categories of posts. And many "blog template" pages. And when i create a new post of a specific category and see it posted only on specific pages. Is the only way by ...
1
vote
1answer
78 views

Edit menu item title from edit page/post

After we save a post/page, a new menu item is created (with the same title) in the navigation that we have created in nav-menus.php. If we need to change the menu item title, we need to go to ...
1
vote
1answer
55 views

Show total author's post views by posts post_meta

I'm searching the web on the last 3 hours without success. I have a website where authors can publish posts, and posts views are tracking using postmeta "post_views_count". I'm using this code and ...
1
vote
1answer
34 views

How to disable single post view in wp

I want know, How to disable single post view in wp. any plugin or setting??? Is there a way to disable single post page, for example when some tries to go to single post page to show not found or 404 ...
0
votes
0answers
19 views

Help with a function that will place a map pin for all posts

I have a custom post type called "properties". When I add a property on the admin side, I input an address and then click a button that says "Place Pin At Address". I have uploaded thousands of ...
0
votes
3answers
43 views

How can I get a table with the number of published posts by date?

I am trying to investigate the correlation between the total number of posts published on a blog and the traffic it receive. I think it's not a huge task but my experience with coding with Wordpress ...
-1
votes
1answer
48 views

Read more link not working [closed]

I having a news page it's displays all posts i have read more each associate with different links but in some read more doesn't show links properly please refer link second and third post can any ...
0
votes
0answers
18 views

How to load specific posts on individual pages or based on username?

I've got a few things here... How can I load specific posts on specific pages? The idea is to have an individual page for each user that displays posts allocated to them. Or if its easier, to load ...
0
votes
1answer
37 views

Updating a post without escaping ampersands?

I've found that wp_update_post() escapes all ampersands provided in the post's post_content. I'm trying to update a post without converting ampersands to &amp;. (I need to add plaintext URLs ...
0
votes
0answers
53 views

WP_Query custom field pass the post id

I'm using WP_Query with ACF(Advanced Custom Fields) I'm building a news portal, and I'm trying to pass related stories from 1 post which is top_story = true. In another WP_Query I want to print the ...
0
votes
0answers
25 views

Adding GUI and functionality to a custom post type enabling working with non wordpress table

I've created a custom table in the Wordpress DB with all the needed functions for working with the table (insert,delete,update etc...) I also created a custom post type, on which I wish to add a GUI ...
-1
votes
1answer
28 views

Post deleted in trash [closed]

I need a plugin or some method to recover deleted post of trash.
0
votes
0answers
67 views

Get Page ID of blog homepage

my start page in WP shows the latest posts. I added some meta fields to the start page in the WP backend which I want to access before the list of recent posts starts. I try to access the meta values ...
0
votes
0answers
13 views

Popup panel is only displaying 1 entry ignoring all others

I have a popup panel being used for when someone clicks on view bio it will display their bio along with their name and headshot. As of right now I have four members being displayed M1 M2 M3 and M4. ...
0
votes
0answers
20 views

How to show same posts on different WordPress installs?

I have 2 websites using WordPress on the same server and the same database with spesific prefixes. I want to show the posts of the first site in the second site. For example: I have 100 posts in ...
1
vote
0answers
43 views

wp_update_post adding a -2 to the post slug

I've recently created a php file that is creating posts using the wp_insert_post function. This is working great and its inserting the post as it should do. I am leaving out the post title as I want ...
0
votes
0answers
19 views

Filter post by post title/content

I have a problem on my site. i have a automatic posting by instagrate the problem is sometimes my post gets duplicate. i want to filter my posts by their post title. i have this setup on page to ...
0
votes
1answer
18 views

How to list all names and descriptions of a custom taxonomy

I have a custom taxonomy (toolkit-sections) inside a custom post type (toolkit-tools) and I'm looking to just list the taxonomy names and descriptions from toolkit-sections on a homepage. I don't ...
0
votes
0answers
32 views

Hide Certain Tags on Single Post Page

I'm trying to hide certain tags from single posts pages. I've googled and found 2 codes but both are hiding the whole post page. I'm using a theme that needs using 2 tags ticker and slider to show ...
0
votes
0answers
21 views

$authordata related posts by author

I created a widget to display related posts by an author but the code no longer gets the posts by author. I'm guessing something has changed in Wordpress and see some reference to the_author_meta but ...
0
votes
1answer
38 views

What function publishes a post when you click the publish button?

I'm trying to track down an issue with a plugin. In vanilla WP when you are on the post edit screen (/wp-admin/post.php) what function is getting called to change the post status from draft to ...
1
vote
2answers
93 views

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' ...
0
votes
0answers
23 views

Got portfolio thumbnails on homepage. need to filter them using filters

All i'm trying to do is add a working filter to existing portfolio thumbnails (Its already there without excerpt or post title - as i wanted it) I've also got the filter terms on the page, with the ...
0
votes
1answer
51 views

Update all images url imported from HTML pages

I have to copy content from different website. I copied whole webpage and paste it in my post. All works fine. I also get images in my post but they are still linked to older website. Is there any ...
0
votes
0answers
23 views

WordPress : Update old image_default_link_type to post

I have this code that update image_default_link_type option value to post. ans it work good for new post. But the old post i cannot update the images in old post to post link. How can do that ?? ...
1
vote
1answer
27 views

Need help targeting a custom post type with conditional tags

I found some code online to create content blocks on my WordPress blog. I use a content block at the bottom of the sidebar of my page for a shopping widget. Here's the relevant code from ...
0
votes
2answers
30 views

Adding featured image messes up page layout [closed]

I got someone to design the wordpress side of my site and now I need to try to understand what they did and would be grateful for advice.I have a Page that shows sections and stages (which are ...
0
votes
0answers
46 views

Post List Widget with custom posts and editing the Read More Link

I actually have 2 questions, one related to the Post List Widget, the other concerns the "Read More"-link. ad 1) I want to show a certain category of posts (only one post at a time) in this widget. I ...
0
votes
0answers
38 views

Different post design as per category

My site has two types of categories ( training & hard-reset ). Under each category there is a slight change in the design for posts. repairmymobile.in/hard-reset/datawind-ubislate-7cz-tablet/ ...
0
votes
1answer
27 views

In what context should Categories and Tags be used

I was thinking on writing up a post called "Review: Ni no Kuni" which would be a personal review on the title game having finished it. Under categories i could make a "Reviews" Category to group all ...
2
votes
2answers
66 views

Convert IPTC keywords to blog post tags

I'm a total newbie regarding to wp or coding or anything like that but I manage to get things done with a bit of reading. I need a way to convert IPTC extracted keywords that are attached to it's ...
0
votes
1answer
49 views

How to get the current user post and it's ID?

I have a site setup so users can publish a post via the frontend, what happens is, there post is posted as a status, 'Pending Review, in a custom post type. How can i get the post ID for this ...
0
votes
0answers
24 views

Get the post id from a plugin

WHile Building a plugin I need to get the post id from the function defined inside plugin.So i used global $post; $postid = $post->ID; echo $postid; and $id = get_the_ID(); echo $id; ...
0
votes
1answer
95 views

If WooCommerce Stock Updates, Also Update Specified Field Values

I would like to have a function that should update the Est. Dispatch Date Field ) in whenever WooCommerce Stock Value / Stock Amount changes even when order is placed and stock amount is reduced by ...
0
votes
0answers
50 views

Unique post-id for Wordpress Multisite Network

As the title says, is there any way to make sure that posts from subdomains, in a Multisite Network, can use different ids? The reason for this, is because I'm using WP Favorite Posts plugin, and ...
0
votes
1answer
56 views

numberposts not working

I've got this following block of code and want to limit the number posts to 2, but it doesn't seem to work..?? I've also tried using posts_per_page, doesn't seem to work either. Can anyone help point ...
0
votes
1answer
19 views

Display a post via template

I want to display a single post in the sidebar-area (not the sidebar itself) and can't seem to get it working. I know the post_id (it's 1571 btw), so I looked around and only found this link from 7 ...
1
vote
1answer
69 views

How to get the post type from a category id?

I am trying to find out the post type from a category id. Suppose that, when i am opening a category page localhost/project/foobaar/category/pen I want to know the post type to which category - ...
1
vote
3answers
79 views

set role specific screen options in post summary page

I need to set different screen options(title,author,categories...) in post summary page for non admin users(editor,author..) which can not be altered by user him/her self. Example : This is the ...