Tagged Questions

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

How do I create Comma Separated list of attached image ids?

I'm trying to grab the image id's of attached images to a post. I'm using an example posted here, but am having trouble returning the just the ids and not the entire array. My goal is to return a ...
0
votes
0answers
10 views

Send POST variable with 'post_publish'

I have a custom button which triggers my page builder to load on the post.php page upon clicking it. However, I want to send a variable as well with it. Here's what I tried $('#post').attr('action', ...
0
votes
2answers
15 views

Adding image in title

I am having some trouble with wordpress. First time user. How do you add an image in the title space in a post on wordpress. Can someone help ? Thank you
0
votes
0answers
20 views

How can I use the “Your latest posts” as a template?

Which is to say, I want a page that shows the content of "Your latest posts". To understand what I mean by "You latest posts" go to: Settings > Reading > Front page displays and one of the options ...
0
votes
0answers
13 views

WP Admin register taxonomy and post type performance

I noticed that the wp backend (admin) gets slower (and slower) when creating custom post types & taxonomies. (note that I'm not flushing any rewrite rules). Right now I'm calling the ...
0
votes
0answers
10 views

Any way to make a blog post be viewed only by the shared link?

As in Dropbox, people can share a file/folder privately by generating a shared link. With that link, any people have the access to that shared file/folder. May I know if we can do the same for each ...
0
votes
0answers
9 views

Exists filter or action that change Add New Post link?

I want to know if exists some method from filters or actions to change the link of the Add New button in backend , for example the regular url is http://wordpress_install/wp-admin/post-new.php but I ...
-2
votes
0answers
11 views

How to change post categories order per post basis?

I got stuck trying on a way for sorting categories of posts per post basis. Does anyone know a plugin or a code to help with that? i'am not a tech guy so i ratter go with something already built..
-2
votes
0answers
9 views

Send email using Subscribe2 with wp_insert_post not in Admin section

I'm creating a new blog post through a template. I do that with the following code: if($_POST['category_name'] != ''){ $cat_ids = $_POST['category_name']; } $bmt_post = ...
0
votes
1answer
11 views

Format latest/newest post differently

I need to apply different formatting to only the latest/newest post. I need the first post to be full size image and full post, all subsequent posts must be excerpts with thumbnails. The code I am ...
0
votes
1answer
24 views

Reset/Reorder posts ID in the MySQL wp_posts table

I have a Wordpress site that is considerably popular. I am in the process of optimizing the site before adding other plugins such as the WPML plugin which I suspect will be using custom post types. ...
-1
votes
0answers
6 views

Kento Post Views counter doesn`t work [on hold]

Kento Post Views counter for unique view doesn`t work well. I have Kento Post Views counter plugin in wordpress, but not working well. Sometime it appears double stats, the stats aren`t appearing ...
-1
votes
0answers
10 views

breadcrumb do not show the child pages but home page and post name

function the_breadcrumb() { global $post; if (!is_home()) { echo ""; if(is_single()): echo 'Main'; else: echo "Home"; endif; echo " / "; if ( ...
1
vote
1answer
33 views

The problem with Wordpress Importer

I've tried many times to upload theme-unit-test-data.xml from http://codex.wordpress.org/Theme_Unit_Test But when I'm trying to upload this file in WordPress Importer it gives me an error saying: ...
0
votes
1answer
21 views

Send/Publish a Post front end

i use this code to create a page with the user can send a post on front-end but i have a problem..when i click "submit" nothing happen. Where wrong? <?php /* Template Name: Rate Wine Form */ ?> ...
0
votes
0answers
10 views

Taxonomy preview page?

I want to organize my posts by "categories" (with a set of extra fields) which can be previewed. If I use the built in categories or register a new taxonomy, I don't think I get the option to ...
0
votes
1answer
35 views

Display related post by tag name of current post

I am using thesis and i am trying to display the related post by there tag name. suppose i have post and that post have three tag or multiple tag like tag:- 1) car, 2)automobile, 3) mechanical so ...
0
votes
1answer
25 views

Add something after all sticky posts in The Loop

Let's say I've got some posts and some of them are sticky. The sticky posts are displayed at the very top in The Loop. while( have_posts() ) { the_post(); get_template_part(); } How can I add ...
0
votes
0answers
13 views

how to place page navigation on a specific page at the end of posts from specific category in thesis theme

In single page of wordpress site I am trying to show 10 posts from a specific category. At the end of the list of 10 posts I want to show page navigation so user can navigate to old posts of this ...
2
votes
2answers
33 views

How to schedule multiple posts while adding new

In a WordPress powered news portal, they need to upload many news at a time on a certain period of a day, in most of the cases, after 10pm (today). But they are actually inserting news for the next ...
0
votes
0answers
10 views

Warning on subsite while creating new page/post in a multisite network

I have a multisite setup (subdirectory setup). While creating new page or post I am getting following error: Warning: Creating default object from empty value in /*****/wp-admin/includes/post.php on ...
0
votes
0answers
14 views

Post Editor: display categories from current post type taxonomy only?

I have a custom post type and a related taxonomy which is called "Asset_Type": Which is perfect. However, if I create a post with the default Wp Post type, I still seem them as categories: I'd ...
0
votes
1answer
11 views

I moved my site to another server, wp admin works so does the front page, but posts don't work

Pretty much summed up everything in the title. I can see the posts in wp admin, but when I hit the "View" link they return a 404 not found. Do you have any idea why this is happening? As a note: I ...
1
vote
0answers
11 views

How to get the last selected media alignment setting?

The default media uploader for inserting into a post retrieves the last selected alignment setting that was used. How do I retrieve that for use in my plugin?
0
votes
2answers
17 views

How to add pagination in between post and comments?

I am trying to add pagination in between post and comments. I used plugin Automatically Paginate Posts for that in which i can able to add pagination after comments and facebook plugin. Is it ...
0
votes
0answers
22 views

How to add posts of static html page into my wordpress theme dynamically [on hold]

Iam going to create a blog which consists of posts and it is a HTML page now I want to convert it into WP Theme I done it now I have some posts I need to get that posts dynamically please help with ...
0
votes
1answer
25 views

How can I have the posts from one word press blog show on the presentation page of another word press site

I am using the Tempera 1.2.2 theme with presentation page enabled (http://worldofmagictravel.com) and curently the blog posts that are showing on the presentation page are from a blog category within ...
-1
votes
1answer
28 views

List category posts plugin - max number of posts [on hold]

I'm using a Plugin called List category posts. According to the documentation you can set the number of posts that appear using the following syntax: [catlist id=1 year=2000 numberposts=30] ...
0
votes
1answer
26 views

Get post ID from a link

I will try to explain my issue as good as i can. Please take a look at the following page in my website. We have: The main page Inside the main page there is a "view offer" button The "view offer" ...
0
votes
1answer
35 views

Query to get data of a post, if in category?

You would think you could use $query = new WP_Query(array( 'p' => $idofpost, 'cat' => $numbers )); to return the post if it is a certain category (or categories, or -number to exclude ...
0
votes
1answer
13 views

What would prevent my plugins from loading when forcing my posts to appear in a scaled-down fancybox.js iframe?

What would prevent my plugins from loading when forcing my posts to appear in a scaled-down fancybox.js iframe? In a normal single.php post page, my ratingwidget and GAP (GIF Animation Player) ...
1
vote
1answer
32 views

Setting post meta data to random value during post status transition / on publish

Upon publishing an unpublished draft, I'd like the custom meta value "post views count" to be set to a random variable between 829 and 1013. I am using the code below, which doesn't always work. It ...
-1
votes
0answers
16 views

Read More text in search form

I have following code in my search.php.It works perfectly but in the result, it shows some part of the post content and then it shows [...]. I want to add Read More text their.What should I modify in ...
0
votes
0answers
13 views

Editing WP Plugin

I have a plugin that will has a dropdown box to select a post, but I want to change it so that it will select a page. Here is the original code. What do i need to change? <?php function ...
0
votes
0answers
9 views

Blank page when saving edits on post

Whenever I try to edit a product or a post on WordPress I get a blank page and the edits are not saved. I have been checking Google alot, but there it all seemed to be caused by a plug-in. I only have ...
0
votes
0answers
21 views

Order posts by custom field

I have 2 types of posts - event and news. For event category, I have a custom field - event_date while news does not have that field. I want to order the posts according to the event_date. I want to ...
0
votes
0answers
18 views

Allow certain subsites to display parent site's blog posts

Scratching my head on this one... I have a WordPress network set up with a couple of subsites. The parent site has a fairly active blog. A few subsites also have active blogs, but some have no blog ...
0
votes
1answer
21 views

Bulk replacing content of multiple pages/posts?

I have multiple pages, and some of their contents are same while others are different. Is it possible to replace the content of all of these pages with same content at once? I have thought of two ...
1
vote
1answer
44 views

How to put last edited entry on top of the blog-post list?

In the list of my blog posts, the "last published" entry is on top. I'd like to view the "last edited" entry on top of that list. I couldn't find a setting for that, so how can I realize it?
0
votes
0answers
19 views

Modify the post display in loop based on 3n+1 post [closed]

I have posts displayed in two columns in a row on blog page. I want every 3n+1 (eg: 1,4,7, etc...) post to use the full width (use entire row instead). How can I achieve something like this? Any help ...
1
vote
2answers
43 views

Driving a random quote like functionality with database

I want to have functionality like this: A random quotes appears in particular section of the website (say sidebar) after a particular amount of time(say everyday). I want to power it up using a new ...
0
votes
1answer
25 views

Hiding menu on mobile only when viewing posts?

I would like to hide menu on mobile only when viewing posts. Menu at the homepage should be visible on mobile but not the other pages. How can I do it? Here is the menu snippet: <nav ...
0
votes
0answers
13 views

I'm trying to display full posts on my custom website

I have successfully integrated WordPress with my website and have it displaying the title of each post in a list format. I would ideally like to display the full post. I've tried changing ...
0
votes
1answer
17 views

Accessing Post ID Within Loop

I have a page called Products with an ID of '8' Within that, I have the following template part <?php get_template_part('loop', 'feed-products' ); ?> Then within that file, I have this ...
0
votes
0answers
15 views

My custom template is displaying 2 Home pages

I'm developing my wordpress theme and I have a problem. I have my homepage.php and galerie.php (custom page templates), the problem is that I want the posts to go to the galerie.php page and not to ...
0
votes
0answers
31 views

My rows are wonky! [migrated]

I am building a theme template page that calls up all the child categories of a particular parent and displays them so that they look like this: The only trouble is that when any row has less than 3 ...
0
votes
1answer
12 views

In post.php how can I remove onbeforeunload?

I am trying to remove the onbeforeunload on post.php but none of the solution I have found online work. I tried: (function() {window.onbeforeunload null;})(); I am using the action: admin_footer ...
0
votes
2answers
20 views

Posts don't appear on Template Page

I made a Template page galerie.php and I wanted to show posts there. Why isn't this working? It seems that posts only appear at home page for some reason. The code is: <?php while(have_posts()) ...
1
vote
2answers
21 views

Posts not showing on page

Can anyone spot anything wrong with this code(see below). No content is showing up on my page. Many thanks in advance. <?php $args = array( ...
0
votes
2answers
40 views

Related post by category throws internal server error

I am using thesis in wordpress 4.1 i am trying to display related post by category with bellow function but when i go to the post detail page it throws internal server error.i have used same code in ...