Tagged Questions
0
votes
0answers
21 views
how to code if the page doesn't exist execute and display this content?
I am trying to develop a wordpress theme, I having hard time on how to code on how to support on this:
if I don't have any page created yet, there is a substitute title and content displayed.
Is ...
1
vote
1answer
47 views
How can I automatically insert the page content as the title?
I have a custom post type with no Title field. These are short status messages, where only the content matters. The RSS feed and permalink display the title as Auto Draft, which is not very useful. ...
1
vote
2answers
91 views
Testing for post title in 'if/else' statement returns no content
I'm testing for a certain fixed post on an about page, I guessed that the best way is to test for post title (?).
Here's my code, what's going wrong?
<?php
if (is_page()) {
...
0
votes
1answer
87 views
Take excerpt of the content of the post and send it as the title to create new post
Explaining my goal: I would create the title by taking the first words of the post content. Ex: In the Admin interface would be the title field blank and the first 10 words of content would be sent as ...
-1
votes
1answer
185 views
Create Slugs Programmatically from Post Content for Specific Post Type [closed]
Was looking at the below post which does something similar to what I am trying to do...it clears out the post_name (slug) and recreates based on post_title.
(for a specific post type)
Create slugs ...