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
0answers
13 views

Create a dynamic post for 404 page before the_post()

I am creating a theory for importing my legacy posts from other CMS and bring it to WordPress, for this thing, I am sending a request to second CMS api, and get JSON if there is a post with current ...
0
votes
1answer
53 views

Display Posts by Categories

I am currently in the process of developing a Wordpress theme and I am looking to have different pages where I can display posts from different categories. I have a styling and structure I want to ...
-4
votes
0answers
30 views

Post Link Loading Slowly and Taking Forever

After restoring WordPress installation from server, when I click on a post link to visit the post is taking forever to load and at some point keeps loading and eating up the server's memory. Any ...
1
vote
0answers
33 views

Loading <!--nextpage--> post with Ajax

Here's the case I got: I've setup post pagination for my website and everything works well. Except one thing - on every new page request all the resources are loaded again. This makes the website ...
0
votes
0answers
30 views

Implementing custom post type categories / taxonomy? (theme building)

I'm building my own theme for a small business website. This website has a navbar on top, with a dropdown under "Projects", listing several categories. As of now, I have all of these categories listed ...
-2
votes
1answer
28 views

unable to select “fullwidth” on the POST (not page)

On my WordPress dashboard, when selecting Posts> Add New post, there is no Page Attributes> Template (Default template, fullwidth page, and so on) in the far right column. Because the ...
0
votes
1answer
23 views

I want to get title name of post, but i didn't get by this code. Any suggestion?

add_shortcode('sort_featured_restaurant','sort_featured'); function sort_featured(){ $the_query = new WP_Query( $args ); // The Loop if ( $the_query->have_posts() ) { echo '<ul>'; ...
0
votes
2answers
28 views

Add Filter to get_next_posts_link

As we see in the source, we can apply filters for $attr. So I create something like this function asdff(){ return 'class="iamclass"'; } add_filter('get_next_posts_link', 'asdff',10,2); or ...
0
votes
1answer
44 views

Basic PHP question (displaying post title over thumbnail) [closed]

I'm new to PHP so excuse the vagueness of this question. I am using a plugin called WP-Tiles that takes a group of posts and displays them in a grid. I'm calling this grid with the following function: ...
0
votes
1answer
29 views

Only Get A Certain Number of Posts From WP_Query

I'm not sure what I'm doing wrong. None of my WP_Queries are returning the given number of posts. From what I can tell, it's returning all of them. How do I fix this? Here is the code I'm currently ...
0
votes
0answers
36 views

Custom Meta Box Image Gallery Not Saving

I'm having an issue of a custom meta box I'm building based off of WooCommerce's Product Gallery meta box. The meta box is not saving for some reason. I've tried some options from many different ...
0
votes
1answer
71 views

The post order is different for logged-in and non-logged-in users? [closed]

I noticed that for some reason on my site, the post order changes depending on whether a user is logged in or not. When I am logged in as the admin, the posts display is chronological order. But when ...
0
votes
0answers
37 views

How can i change posts dates random?

I have totaly 5k content. I need change all of them dates. How can i set randomly dates? SQL? Example from 01.01.2010 to 20.06.2016 everyday can be dates.
0
votes
0answers
15 views

How to call a function declared in post.php

I have created a function which checks the post meta data of the post and then chooses a particular category for the post. The function is working fine. I have declared it inside post.php. I want this ...
1
vote
1answer
54 views

Why not yield/iterable in posts interface?

I was reading an article on the advantage of yield statements and iterables - a handy and useful thing where "the list is so large that merely creating it would consume all of the system's memory" ...
0
votes
1answer
46 views

Need help removing […] after excerpt

My website is watersedgeofshelton.com and i need help removing the [...] after the excerpts on the blog posts (under activities, marinas and restaurants" I read that I had to add this code to my ...
0
votes
0answers
7 views

Replace post title with customised drop down menu & others

So basically I want to be able to customise the backend "add new post" page, replacing the "post title" field with a dropdown menu and automatically inserted variables (date & username). ...
0
votes
1answer
30 views

How to get posts from a current post's month?

I want to display the titles of the post of the same month as the blog post. I tried this .. <?php $year = the_date('Y')?> <?php $month = the_date('M')?> <?php $theids = $wpdb-...
-3
votes
1answer
30 views

How to hide a script ( an ad) from a specific post? [closed]

I would like to hide a script, an ad actually from a specific post. The script is placed on header. I am a rookie here so please help!
0
votes
1answer
45 views

Show posts count for Categories and Tags in wp_nav_menu

I'm trying to show WooCommerce Product Categories, Post Categories, Product Tags, Post Tags and Custom Taxonomy posts count in main navigation using wp_nav_menu. My WP_NAV_MENU code &...
0
votes
0answers
21 views

letting unregistered users edit or delete their custom post type only by password login

Letting the unregistered users editing or deleting their custom post type by password login only from the front end. Therefore, what I need to do is allow unregistered users to set a post password ...
0
votes
0answers
56 views

wp-admin/post.php access denied

When I publish or update posts with media (eg: image ) it results to following message. Access Denied You don't have permission to access "http://example.com/wp-admin/post.php" on this server....
-2
votes
1answer
38 views

How can I show the positive and negative comments for a same post separately?

I am working on a page in which the user will be able to choose whether he/she wants to see the positive feedback or the negative ones only. Whenever any user opens a post and moves over his cursor ...
0
votes
0answers
29 views

URL Rewriting on CPT

My website has Custom Post Type and I want to have beautiful URLs but i don't know how to do. Ex: https://www.mywebsite.com/boutique/?countryname=allemagne#!/countries=252 TO BE https://www....
0
votes
1answer
35 views

Post Title to featured Image ALT

i saw a interesting post on Stackoverflow where someone showed a code to to use the post title als alt tag for the featured post. So i tried to use the code for myself and change it a bit because mine ...
4
votes
2answers
100 views

How to remove Nextpage tag inside posts text depending of utm_campaign

Is it possible to remove "nextpage" tag inside posts text depending of utm_campaign ? Depending of where my visitors are comming from, I want to remove the <!--nextpage--> of my post. I ...
0
votes
0answers
20 views

Order posts by term in alphabetical order

I know it's possible to order by terms, but having migrated a huge amount of data from a different CMS, I'm left with a list of brands that are taxonomy terms. I'm using ACF to present the terms as a ...
0
votes
0answers
20 views

Categories box not showing on post edit pages

for some reason I don't get the Categories meta box on my standard 'post' edit pages in the wp admin. It shows up on my custom post types, and they show up in the 'Quick Edit' view on the Posts list ...
0
votes
0answers
26 views

Sharing tables between 2 different websites based on the same database

I have 2 different websites installed on the same database. The 2 websites are sharing the users tables, but I want them to share the posts tables too. I tried to do it by editing wp-db.php. After ...
0
votes
2answers
43 views

Trying to edit the single page from a Custom Post

I have a custom post type where I can create pages in.("article.php") It automatically uses the template "single.php" when I create a page, although I want to change some things in it without ...
0
votes
1answer
30 views

Hide Admin posts & pages in Dashboard

Is it possible somehow to hide Admin's pages & posts from dashboard so that other users will only view/list non-admin publications?
0
votes
1answer
45 views

redirect to uploaded (wordpress) post after form submission from front-end

I'm using the following code to redirect the page, in order to prevent re-submission of the form. And it does fine job doing redirection to the homepage. And my website is based on the WordPress, ...
3
votes
1answer
35 views

Set number of article per number of page

I'm making a timeline using this awesome free theme. As you can see in this theme, it's a timeline separated by "Page". We have "Page 1" with 5 articles, "Page 2" with 5 articles, etc ... I changed ...
0
votes
0answers
25 views

How to get new posts via Ajax when using Waypoint.js

So I have an ajax call in one of my pages when you hit a certain waypoint within the dom. I then call a Wordpress function that I have created. The function is working in that it gets the first posts, ...
1
vote
1answer
22 views

Amend wordpress password function

I simply want to add a H2 or whatever html tag above the content in this password protection function. Is this correct? function my_password_form() { global $post; $label = 'pwbox-'.( empty( $...
0
votes
1answer
39 views

Automatic blog page with custom design [closed]

For my website, I would like to make a new section that looks like this: [] = a row {} = a column [{Image of post} {text of post}] [{text of post} {image of post}] [{Image of post} {text of ...
1
vote
1answer
52 views

Integrate OpenStreetMap on WordPress

I want to put a map (using OpenStreetMap and OpenLayers) on a WordPress page. I don't want to use a plugin, because I have some specific operations I want to do with the map, and thus I want to stay ...
0
votes
0answers
7 views

post_row_actions to print pdf

I'm a bit of a newbie wordpress dev so apologies if this seems like a bit of a stupid question to ask. I'm trying to add a plugin which will allow me to print posts as custom styled pdfs. I've added ...
1
vote
1answer
44 views

Auto-realod with new posts // Ajax call

I'm trying to realize a sort of "live feed" so when the user is on my page IF I UPDATE my post on his side he should get a auto-reload of the page OR a ajax-insert-post in that page. In example: The ...
-2
votes
1answer
26 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
0
votes
0answers
19 views

WordPress Post directing back to homepage

I have a very weird problem. Just one of the posts on a WordPress installation is directing back to the homepage when you try to view it, either by clicking a link or pasting into the URL. This is an ...
0
votes
2answers
21 views

Custom WP_QUERY $args

I have an SQL query here: $data_listg = $wpdb->get_results( "SELECT ID FROM " . $wpdb->prefix . "posts where post_type='post' and SUBSTR(" . $wpdb->prefix . "posts.post_title, 1, 1) LIKE '%$...
1
vote
1answer
26 views

UberMenu list current user's posts as menu items

I'm attempting to turn users' posts into menu items, without luck. Here's what I have so far, but not working. I would like to use the Advanced custom content by adding a shortcode. add_shortcode( '...
-2
votes
2answers
39 views

show the most recent date of all posts to display on front end

Is there any way to show the date that the last post (most recent) from my custom post type was created? I want to have my site show the last time a list of products was updated and i figured that it ...
0
votes
1answer
22 views

Post & Category Archives URL structure

I've looked through many similar questions, but haven't yet been able to find a solution to my particular problem. It seems fairly straight-forward, but I can't seem to find the correct combination of ...
5
votes
1answer
81 views

How to mark articles as read?

I have a normal Link: <a href="/article-1"><span class="visited-circle"></span>article 1</a> and when someone have visited this article so i changed the color in CSS: a:...
2
votes
0answers
27 views

Showing random content / pictures from earlier posts in a sticky post?

I have a sticky post on my wordpress blog, in the beginning. I would like to place some random content in it, by simply replacing some HTML in the post content. The random content would come from ...
1
vote
1answer
53 views

How to get posts by multiple post slugs? [duplicate]

i am trying to get posts by multiple posts slugs, i can do this by passing post ids but I do not want to pass post ids i am looking for posts slug Here is my code $option = array( 'posts_per_page' =...
0
votes
2answers
33 views

Which URL to enter into browser to show all posts in archive.php?

Consider the simplest archive.php possible: <?php get_header(); while ( have_posts() ) { the_post(); the_title(); } get_footer(); What address should I type into the browser to get to ...
0
votes
1answer
34 views

Creating Ordered Query using Meta_key

I've hit a massive roadblock that I've been stuck on for days now, hope someone can help with this. The problem: I have a custom field called order_value with the values road, air and bus. I am ...