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

Filter by
Sorted by
Tagged with
0
votes
1answer
48 views

how to display posts content on the custom css popup by clicking on each title on the sidebar?

I want to display post titles based on post_tag from default post_type concat with post_category from another post_type named 'update' on the sidebar. And finally When users click on each title it ...
1
vote
0answers
21 views

How to get the post ID's of the five most recent posts [duplicate]

How can I get an array with the post ID's of the five most recent posts? I need it to exclude those posts from a WP_Query / get_posts(). I need a WP_query that skips the first five posts and starts ...
4
votes
1answer
85 views

How to exclude latest x posts from a paginated query?

I have a WordPress loop, that is part of an AJAX call. Every time a button is clicked, this function is called, runs the below loop and outputs the next 6 posts. There are already five posts shown by ...
1
vote
1answer
26 views

Two loops, one AJAX loop, exclude posts in first loop from second loop, loops are in different files

I have two loops that display posts: the 'default' loop (in home.php), which displays five posts. At the bottom of the page I have a button, that invokes an AJAX call, which calls a second loop and ...
0
votes
1answer
21 views

Saving canvas generated image when saving post causes 404 error

I have added custom functionality to the wordpress post form where a canvas image is generated, passed to an input and then I am trying to save it. But when I click the "Update" button I am shown the ...
0
votes
0answers
29 views

I'd want to exclude current post from related post

I have a problem with my blog, I put 12 posts and related post show always current post (and others), how can I fix that ? thanks for support <div style='clear:both'/> <div id='related-...
0
votes
1answer
16 views

Is it possible to lock all new and existing WordPress posts to one specific author?

I have a case where there will be multiple users writing, editing, and publishing posts. All these posts should always have the same user as the author, a catch-all user if you will. Is it possible ...
0
votes
1answer
15 views

How do i bring out post category name in my widget?

I customize the repeat post widget and add little functionalities to it. Everything is working fine but my challenge now is that the widget when used is not bringing out individual post category name. ...
1
vote
1answer
105 views

Unwanted Duplicate Posts Showing in Pagination Pages

For some reason, I have posts that keep repeating on certain pagination pages using the code below. It's completely random, so I have no idea how to fix the problem. Maybe it's something in the post ...
0
votes
0answers
16 views

How to allow users to save list of posts in wordpress?

I want user to allow to create these types of list. Then they can add any number of posts. And these list are private. I mean only created user and admin can access the list.
0
votes
1answer
17 views

Allow members to create groups on my site

I am currently building my first Wordpress site. I want to be able to do the following: User arrives on page listing all the available groups User joins group if he finds what he likes If he doesn't ...
0
votes
0answers
15 views

Updated Plugins - This error appeared Failed to initialize plugin: sm_mce_dropbutton

This code pops up on every page -- Failed to initialize plugin: sm_mce_dropbutton. I can't seem to find anywhere to even begin to troubleshoot. Any thoughts?
0
votes
1answer
16 views

Passing values via an Ajax querystring

I have an iframe (I'm embedding YouTube videos) in my post.php template. What I need to happen is that everytime the iframe is mouseover'd, a value is passed via Ajax to a custom field in order store ...
0
votes
0answers
22 views

how can i take wordpress post as embed?

how can i get an adress for using iframe in another website? Example: site.com/sample-page i will use this page in another website as iframe but only content part Example: <iframe src="site....
0
votes
0answers
24 views

Remove last line of all posts in Wordpress

I am looking for a way to delete the last line from all my Wordpress posts. The last line is different for each post. I have the author name (different from wp user since there is only one user) ...
0
votes
0answers
16 views

Some custom post types did not return an object

I wrote a function to register custom post types below - appetizer (working well) - vermicelli (working well) - pho (working well) - seafoodNoodle (X) - koreanSpecial (X) - koreanRice (X) - lunchBox (...
0
votes
0answers
18 views

how to create a shortcode from a variable in plugin

im using WP User Frontend Pro plugin i want to echo the pack title using a shortcode to put it in bakery visual all what i know is this is the title $pack->post_title; i tried something like this ...
0
votes
0answers
15 views

Separate database for WordPress plugin and custom post type

I'm creating a big database (tens of thousands of entries a month) of gift cards. I want this information to be stored securely on Amazon RDS separate from the regular WordPress database that's apart ...
0
votes
1answer
25 views

Infinite looping next post link within a certain category on a post

I'm looking to create an infinitely looping 'next post' link at the bottom of a post that only links to posts in that category. So if I have three posts in the same category – 1, 2 and 3 – it should ...
0
votes
0answers
40 views

ACF Front end field checkbox with: Mark as Read

I have to create a field in the front end for each subscriber that can mark the post as read. I want to set a flag, so a user will know which post he has read and which he has not read. Perhaps the ...
1
vote
0answers
44 views

Classic editor throws 403 error based on post content

In an updated and unadorned WordPress installation, with only the Classic Editor plugin enabled, and the 2017 theme, I get a weird error. When I try to save a draft of a post containing this <...
1
vote
2answers
79 views

Wordpress display breadcrumbs using Yoast plugin [closed]

Hi so for all my Wordpress 5.4 site’s posts (articles), I'm using Yoast SEO plugin for breadcrumbs across my site. For all my posts (articles) I just want: Home > CategoryLink > as breadcrumbs, not ...
0
votes
0answers
10 views

Can't select a “featured image”

Has anyone ever come across the issue of not being able to select a featured image on a blog post or page before? For brand new posts, the button to select a featured image doesn't even appear: For ...
0
votes
0answers
13 views

Prevent a post with a specific ID from being created

Is there any way to blacklist a certain post ID, regardless of the post type, so that a post with that ID is never created?
0
votes
0answers
13 views

Enable download button fro custom post download in back-end

i have developted a custom post download using CPT in wordpress. i want to add a download buton in the back-end to be able to download from there. once login , users can see the custom post type ...
0
votes
0answers
33 views

Is update_post_meta used when save_post action hook is invoked?

Here, I have some code which applies some indexing operations on an external service (Algolia). My purpose, is to index posts in a similar way, as described in their API documentation. For that cause, ...
0
votes
0answers
25 views

Post title not displaying as recorded in the wp_posts table

I have a WordPress install in which the "post_title" field from the "wp_posts" table is not making it into the WP_Post->post_title variable. So, for a given post in the wp_posts table that has a ...
0
votes
0answers
18 views

Save draft button not saving blog post

I have spent ages trying to figure this out and I am baffled! Hoping to get some help. This is in relation to my wordpress.com blog http://befreewithlee.com/. My save draft button on my blog posts ...
0
votes
0answers
52 views

How to set default category upon submit only

I am trying to create a function that will set the default category to a post upon submit before it is published, but upon submission of the post, in the case that contributor doesn't set any category ...
0
votes
2answers
15 views

Include Recent Post in Category

I use a free WordPress Theme called DefautMag, It has a front page with 3 columns, In the front page settings, I could choose any category to display in any of these columns, But I want to display ...
1
vote
1answer
29 views

Move first half of posts to one parent page, second half to the other page

there! Let's assume that we have 2 posts (Post A, Post B). They already exist and located like following example.com/post-a Now I want to create 2 separate parent pages like cat1 and cat2. How can ...
1
vote
1answer
55 views

Check if checkbox is marked on publish/update post

Updated with working code here: add_action( 'acf/save_post', 'fritlaeg_artikel_3m' ); function fritlaeg_artikel_3m( $post_id ) { if( get_post_meta( $post_id, '...
0
votes
1answer
15 views

How to style archive post titles… but only those posts who have comments?

How would I style archive post titles for only those posts who have comments?
1
vote
0answers
17 views

How to build a site with a map that shows where people offer and need help?

I'm trying to build a site where people can ask and offer help to each other. The idea is that people could publish "help needed" and "help offered" posts by filling in a simple form (with address ...
1
vote
0answers
9 views

Outbound link autometic converted into linkdirect , and not opening

Outbound links are automatically converted into linkdirect link, and not opening. But internal links are fine. I use wp Nofollow plugin, currently, I deleted the plugin but no luck. Please check my ...
1
vote
0answers
22 views

wp_trim_words() does not work with my code Am I doing any mistake in my code?

n my WordPress website, I want to show a short text of each blog_post on the custom blog template. I want to show a Read More button with a link to the post at the end so a user can click on that link ...
0
votes
0answers
14 views

Cron Jobs For Wordpress?

I have a lottery blogs. I daily do 7-8 posts daily. Just copy the last post and change the upcoming date and then published it. Could anyone tell me how to automate it? Copy post > Change date and ...
1
vote
0answers
17 views

Display post option on frontend

Don't know better way to describe. Is it possible & how display this module (red marked) on frontend?
0
votes
0answers
12 views

Print different message on each post based on category type while excluding the latest post

I have been struggling to find a better way to do this, I would like to print different messages on all posts based on the category type while excluding the lastest post in each category. if ( ...
0
votes
0answers
18 views

Filtering private Posts

i got a page wich contains only private posts. Is there a possibility to use the wordpress built-in filters like archive or category?
0
votes
0answers
34 views

Trying to add a new feature in my wordpress website

I have a website called NearFile. Here is the link: https://nearfile.com/. It is a software downloading website created on WordPress. On every software page I have added a sidebar called "Other ...
1
vote
2answers
36 views

How to get 2 or multiple custom post types in wordpress functions.php

I using the below code to get modified data for the post, but I need to get the same modified post for my other custom posts. For example, it works if i change post to test( my custom post type name)"...
1
vote
1answer
19 views

Retrieve value between 2 post

I have a question. I have 2 post. post A and post B. Post B have field ID post A. I want create a function to retrieve data from post B that have the post A ID. I don't know how to do this. function ...
1
vote
0answers
22 views

How to create a submenu that will navigate through different posts in the same page

I came across this website and it will be the best explanation of what I want to create if you just take a look but yourself. I asked the creator but he doesn't reply. Please visit: https://www....
0
votes
0answers
17 views

Reuse old post ID for new post after deleting post

I want to Reuse old post ID for new post after deleting some post. I have a site that has Q&A and I displayed the post ID before the title of each question so that the user / I can guess how many ...
1
vote
0answers
28 views

Get the number of posts shown in the current page

I am currently trying to implement a load more function described in this stackoverflow post, and in order to do so it is necessary to know how many post have been loaded already. Thus, I am trying to ...
1
vote
0answers
10 views

Create new posts in bulk using existing post

After using short codes and reusable blocks, I have created a post which is created dynamically only on the bases of the title of the post. That post looks like this: I want to create 100's of such ...
0
votes
1answer
15 views

How to view a post from the wordpress admin screen

I have been thinking of displaying my post from the admin dashboard screen just like how a plugin is displayed. Above is a wordpress dashboard. How do i view post from the wp screen. Kindly help me. ...
1
vote
0answers
28 views

Problem with adding programmatically woocommerce product post into category

I have problem with adding product to category when I creating this product. I have this code: $my_post = array( 'post_type' => 'product', 'post_title' => 'Drukarka '.$_POST['...
1
vote
0answers
26 views

Setup a custom dynamic post

I would like to create posts on-the-fly and not store them in the database. For this I'Ve prepeared three steps: Setup a custom rewrite rule to match all pages like https://example.com/my_page/...

1
3 4
5
6 7
111