Maria Korolov
Forum Replies Created
-
I’m also getting a weird problem when I edit a regular post — the edit window of the post text is blank. It’s blank when I switch to the HTML view, or to the display view. If I select the blank text, I can see it’s still there. And when I load the page, it looks fine on the website.
Deactivating 4.0.2 made the problem go away.
I’m going back to 3.6.9, which I downloaded earlier this week per your instructions after the 4.0 update brought down my whole site.
- This reply was modified 10 months, 3 weeks ago by Maria Korolov.
I am also getting the error that says:
There has been a critical error on this website.
Learn more about troubleshooting WordPress.
Everywhere except on the author page it works fine.
When I deactivate the plugin the error goes away, but now I no longer get multiple authors on my posts, which is what I was using this plugin for.
The problem only appeared recently, and I haven’t made any changes on the site.
Forum: Plugins
In reply to: [Repost] How do ads work?Where exactly do you configure ad tags? The “Ads” tab only has one option — to select between the regular ad-supported and the free for non-profits pricing choices.
I think you should call your custom post type something other than “post” since the “Post” type is already taken. Just a guess.
— Maria
Forum: Plugins
In reply to: [WP Easy Post Types] [Plugin: WP Easy Post Types] Notes to DeveloperChertz —
Thanks for the great plugin!
I’m using it on my site, and it works great.
I’ve come across a couple of issues, though:
When you select “Use Pretty URL” the text entry box disappears when you try to add or edit a new post.
And when you try to have multiple choice options, none of them show up — the drop-down list is there but all the entries are blank.
Finally, an image option type would be fantastic!
Thanks,
Maria
If you go to your wp-admin page, click on “Settings” and click “Reading” you can set how many posts you want to come up per page.
Do you do want to create a custom archive page with a certain number of posts?
Then you need to add the following at the bottom:
<?php next_posts_link('« Older Entries') ?> <?php previous_posts_link('Newer Entries »') ?>
— Maria
And here’s how to do the query to get just particular custom posts:
<?php query_posts( array( 'post_type' => 'location' ) ); ?>
And if you want to do multiples types in the list:
<?php query_posts( array( 'post_type' => array('page', 'location') ) ); ?>
I figured out the template issue for individual custom posts. Here is the answer in case anyone else needs it:
Say you have a Custom Post Type called “Events.”
You need to create a new template file called single-events.php
(I just duplicated single.php and changed its title and fiddled with the inside a bit to remove stuff I didn’t want showing up for this custom type.)
And if you want to add individual custom fields to the inside of the template, here’s the PHP code:
<?php echo get_post_meta($post->ID, 'field-name',true) ?>
You would replace ‘field-name’ with the name of your field — in the case of the Events post type, for example, that would be ‘location’, like this:
<?php echo get_post_meta($post->ID, 'location',true) ?>
— Maria
Oh, and a couple of questions:
Is there any way to specify a particular template to use to display custom posts?
And what is the PHP code to show all the posts of a particular post type?
I.e., I’d like to have a Custom Posts template just like I currently have a Category template.
Thanks!
— Maria