Jpyper
Forum Replies Created
-
I changed my settings to not exclude any post types, since I was getting just a single item indexed that way.
I put the dump stuff into the spot where Titles are inserted into the database (around line 2358), and it looks like it’s trying to add the same thing into the database multiple times. I get this:
WordPress database error: [] INSERT INTO wp_relevanssi (doc, term, tf, title) VALUES (3871, '', 1, 0) string(4) "2588" string(75) "INSERT INTO wp_relevanssi (doc, term, tf, title) VALUES (3871, '', 1, 0)" WordPress database error: [] INSERT INTO wp_relevanssi (doc, term, tf, title) VALUES (3871, '', 1, 0) string(4) "2885" string(75) "INSERT INTO wp_relevanssi (doc, term, tf, title) VALUES (3871, '', 1, 0)"and so on repeated many many times with just the number after string(4) changing each time. The post ID that it’s repeatedly inserting (3871) is the single one that is getting indexed. If I change my settings to only index “post, page” and my other 2 custom post types, I don’t see any insert queries.
Does this help?
Like I mentioned in the post before yours here, that’s actually where I added the code on a guess and I don’t see anything different when I build the index. I tried just echoing something in that if statement and nothing echos, even if I make an else and try to echo, I see nothing. Should I be seeing it right after I build index?
I get nothing when trying to dump the insert queries.
The lines the last trick mentions are not in my relevanssi.php file. They are nowhere to be found. I tried adding the var_dump and print_error to lines 2376 and 2377 of relevanssi.php but don’t see anything different happening.
Hi Scott, here’s what I added to my functions.php file to make it work for me:
remove_theme_support('post-thumbnails', array('post', 'page', 'portfolio', 'slideshow')); add_theme_support('post-thumbnails', array('post', 'page', 'portfolio', 'slideshow', 'event'));first I removed thumbnail support for all the “post types” my theme had enabled them for. then I re-enabled all the same types plus the ‘event’ type. to check what post types your theme has supporting thumbnails, you can either do a search across your theme’s files to find where it calls “add_theme_support” or just check all your post types from the dashboard and see which ones allow the featured image.
hope this works for you!
Forum: Plugins
In reply to: [podPress] [Plugin: podPress] Podpress and custom permalinksFirstly, @amandato could you troll any harder for users?
I’m happy with podPress, I know it’s just me doing something wrong.
Secondly, It’s working now. All I needed to do was use /sermon/feed as my feed URL, that’s where tall the posts were.
Thanks for your help ntm. I don’t think I would have caught that my feed url and podcast storage folder were the same path.
I wasn’t using a plugin for my custom post types, I had written the code into functions.php to create them. And I did also have a custom taxonomy with them.
Thanks again!
Forum: Plugins
In reply to: [podPress] [Plugin: podPress] Podpress and custom permalinksThat definitely makes sense about the folder path being the same as the feed URL I want.
I changed the folder to /feed/podcasts (added the s) so the URL’s will not conflict.
I am still getting a 404 though and I am certain that I have multiple posts with podcasts attached to them.
My podcasts are attached to a custom post type. I just tried attaching a podcast to a regular post and it showed up in the feed. So it looks like something is wrong with podPress and my custom post type.
I have my post type selected to have a podPress metabox in the General settings. Is there something I need to do different with the feed URL or the feed settings to make this work with a custom post type? My post type is “sermon”.
When I am declaring my custom post type in code, do I need to include something for podPress in the “supports” field like I do for title, editor, thumbnails, etc.?
Forum: Plugins
In reply to: [Category Custom Fields] Plug in support – categorycustomfieldsThanks. I remember seeing that in the plugin code now but not in any documentation.
Everything is working fine now.
Forum: Plugins
In reply to: [Category Custom Fields] Plug in support – categorycustomfieldsThe update allowed me to save my image, but how do I get the image in code?
All I can ever seem to print out is an array. Is there a function that will output the image directly or at least the URL to where the image is stored?
Forum: Plugins
In reply to: [Category Custom Fields] Plug in support – categorycustomfieldsI can’t get this to work. I’m using
$image = categoryCustomFields_GetCategoryCustomField(120, 'Series Image'); print_r($image);Series Image is the name of the custom field I created using the plugin. It’s on a custom taxonomy attached to a custom post type. When I run this all I get is an empty array.
When I go to the Edit Category screen my image field is always blank like I never uploaded an image.
My ccf_Value field in the database is empty as well, which make me think that my uploaded image is not actually being uploaded.
I’m running WP 3.3.1, so hopefully the plugin works with that version.
Thanks for any help!
It wouldn’t work for me to just add post thumbs to the ‘event’ post type in my functions.php
I had to go in my theme’s files and add in theme support for ‘event’ to fix it.
I dislike changing theme core files though, so to avoid that I went in my functions.php file and used remove_theme_support for all post thumbnails, then added them back in with ‘events’ included.
Problem solved on my end.
I’ve got pretty much the same issue but I haven’t had any featured image area at all. I just did a fresh install of EM. I have featured images enabled on pages and posts but not on EM. I added add_theme_support( ‘post-thumbnails’ ); to my functions.php but nothing changed.
I’m using the Progressio theme. Can’t stand it but I jumped into a project after it had started.
Other ideas?
sorry, will make a new post
Hey Cole, did you ever have any luck with this? I’m looking to do the same thing.
Forum: Plugins
In reply to: [Mail2List] [Plugin: Mail2List] Parse error appeared to mei know this was 7 months ago, but in case somebody else comes across this and needs help:
you’ve just got to go in via ftp to the m2l_main.php file mentioned in the error and delete the last line, which is like “<?php } ?>”
i don’t know why the developer never fixed that. maybe something happened to them.
Forum: Hacks
In reply to: putting wp_title into a variable is evaluating strangeah yes, now when I use the right comparison I get “everything is insane”, which is how I am feeling.
but the trim worked! I had wondered about whitespace since wp_title allows for tags before and after the title string, but when I printed the variable it looked like things were fine.
THANK YOU SO MUCH! Especially for the speedy reply.