Questions tagged [get-post]
The get-post tag has no usage guidance.
11
questions with no upvoted or accepted answers
1
vote
0answers
77 views
Formatting get_post content doesn't allow JS content to function properly
I am currently pulling in the latest post on a category page based on which category you click on. When you click on the category "Code Examples" you see this:
I am using the Crayon syntax ...
0
votes
0answers
41 views
get_post() with filters applied
*** PLEASE SEE UPDATE BELOW AS THIS QUESTION IS EVOLVING ***
Is it possible to call get_post() and have the filters applied for the ID passed to the get_post() function?
My client has asked if we can ...
0
votes
1answer
41 views
Can you add a shortcode to a custom post type that gets the post_title, post_content, etc. and then passes that to a plugin function?
Help! Cannot figure this out.
I have built a plugin based on this tutorial that gives a user the ability to export a post from a custom post type into a formatted PDF using FPDF.
As it stands, the PDF ...
0
votes
0answers
50 views
How to get custom post type with dynamic ID
I want to show a custom post type chosen from the meta box dropdown list but i am getting this error Notice: Trying to get property of non-object in C:\xampp\htdocs\wordpress\wp-content\themes\...
0
votes
1answer
25 views
Custom field in PHP file
im a beginner with PHP, so i hope that someone can help me solving this issue.
I want to display the expiration date of a post with the following plugin https://wordpress.org/plugins/advanced-...
0
votes
0answers
97 views
Loop (for search results) returning right posts, but wrong post type
Hoping this isn't already asked/answered, but it's a tough one to search. I've got a site based on the Flatsome theme which uses custom post types (through various plugins). The search page works in ...
0
votes
3answers
55 views
Show content from multiple pages (not posts) on home page
On my home page I'd like to display the title and content from a few pages (about page, contact page, etc.). It looks like the template tag get_post can be used, but I'm not savvy enough with PHP to ...
0
votes
1answer
203 views
How to call get_post()?
I have a sidebar on my site and there I want to show the current post's meta information, such as the last modified date, the author and more.
Thus I wrote the following function:
function ...
0
votes
1answer
80 views
Modifying Wordpress XML-RPC Built-Ins
In short, I want to be able to modify the wp.getPost response to also return additional data, like the permalink. I thought it would be as easy as just calling the same function the xml-rpc code ...
0
votes
0answers
59 views
getpost content with all formatting for admin pages
All My post usually uses various plugin based data manipulations (Like visual layout, grouping, plugin css, etc) And now I want to render a post content in my admin page. On using following code:
$...
0
votes
1answer
90 views
Get post by Category in custom template
I want get all categor and after that i want get 5 post per category. but my code not work!
http://pastebin.com/vxDSGGZk
<?php
$categories=get_categories('');
foreach($categories as $...