• Catablog v1.0
    Relevanssi v2.5.4
    WP v:3.0.4

    Hi

    I’m build a proof of concept site for my wife (never done this before) and have WP running locally on my machine. I’m trying to get Relevanssi serach to search the catablog entries I have and it does and returned results but the links on the reulst go to a page not found.

    The top result when searching for the word Balloon go to:

    https://localhost/wordpress/?catablog-items=balloon-rainbow-unit-badge

    Which is a catablog entry and what I would like the user to see or to go to the area of the page that the catablog entry is on but liker I say errors with:

    Not Found
    Apologies, but the page you requested could not be found. Perhaps searching will help.

    The second result which does work is:

    https://localhost/wordpress/?page_id=53

    and this is the page where the text “balloon” exists as part of one of many catablog entries and the result links to the top of the page.

    Is ther ea way of just displaying the one catablog entry from the search reults or getting it to link to the section of the page with the entry?

    Many Thanks

    Si

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi 5hort5,

    Sounds to me like you want to make your catalog items into full fledged posts. CataBlog is designed to make a list of images with specific textual data for a post, not to actually make the posts themselves. That being said, CataBlog is coded using WordPress’ Custom Post Type feature, meaning each catalog item could easily be turned into a post, in fact they already are posts! On line 158 of the CataBlog.class.php file in the lib directory in the catablog plugin directory their is a line of code that reads:

    $params['public'] = false;

    You could hack the plugin and change the public value to true, giving each item their own page that shows in search results and has a permalink.

    By doing this you will also most likely create some havoc in your admin panels as two CataBlog panels will show up I think. With out better knowledge of custom post types you are going to be in trouble trying to hack CataBlog, and once you have a better understanding of custom post types it’s easy enough to customize your own post type specifically to what you need and not use CataBlog. The plugin was originally designed to help a client who didn’t know HTML or how to create a well formatted list of data. From there it has grown in functionality, but still remains best for creating galleries or lists in a post, not creating the posts themselves. That being said the content of the post will be indexed and searchable, just not as individual results.

    Personally, I would look into Theme Development. For what you want all you should need is built into WordPress. What you will need is a post category for your catalog items and smart use of Post Thumbnails in your templates along with a few custom get_posts() database queries.

    Could you please resolve this thread. Thanks.

    – Zach

    UPDATE

    if anyone out there wants to use the Relevanssi plugin to index shortcode content for searches with CataBlog should have no problems. If you see individual catalog items showing in your search results, you should make sure Relevanssi is set to use only public posts and pages and not all posts and pages. Read more about it at the official CataBlog website.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Relevanssi and searching catablog entries’ is closed to new replies.