Support » Plugin: Custom Content Type Manager » [Plugin: Custom Content Type Manager] Listing Format With Specific Custom Fields of a Specific Custo

Viewing 15 replies - 1 through 15 (of 57 total)
  • Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Sure, check out WP’s get_posts() function or try my other plugin: Summarize Posts. There are lots of examples on its Wiki: http://code.google.com/p/wordpress-summarize-posts/wiki/Examples_get_posts

    The simplest might just be a shortcode in your post:

    [summarize-posts post_type="your_post_type"]

    WebmistressM

    (@webmistressm)

    I think [summarize-posts post_type=”your_post_type”] might be too generic/non-specific but I see. I did download the Summarize Posts plugin but I just wasnt sure if I should make a template file or if there is a shortcode button on a page’s body/description to add things in.

    My content type has over 8 fields but I want to hide (i.e. not show) about 60% of them on this static wordpress page

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    The Summarize Posts has a LOT of options, so you can really fine-tune it to return EXACTLY the options you want. As far as which fields you want to show, that’s all a matter of how you format your results. The simple way to specify the format of each result is by using the full version of the tag:

    [summarize_posts]<li>[+post_title+]</li>[/summarize_posts]

    Where the wrapped text is used as a formatting string:
    <li>[+post_title+]</li>

    You can use a lot of different placeholders in there: basically any column from wp_posts and any custom field name can be used, e.g.
    <li>[+post_excerpt+] [+post_date+] <br/>[+my_custom_field+]</li>

    No button for the shortcode yet… but that’s coming.

    WebmistressM

    (@webmistressm)

    It baffles me that I cannot get shortcodes to parse in a post or a page. I tried typing it in using the wysiwyg editor as well as the HTML editor. Ill have to look into this and find out which plugin is farking it up.

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Shortcodes parse ONLY in WordPress’ built-in “content” area. They will not parse in a WYSIWYG custom field. Are you putting them in a custom field perchance?

    WebmistressM

    (@webmistressm)

    I am actually not putting shortcodes in a custom field. Im puttign it in the main body of the post or page. I also have NextGEN gallery in this same install so I know shortcodes work.

    WebmistressM

    (@webmistressm)

    http://imagebin.org/180101

    This is where im entering it

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Ok, it threw me for a long time that shortcodes only parsed in the content area, that’s why I mention it.

    Do those tags interfere with the shortcode? Try adding "help=1" to your summarize_posts code and you'll get debugging info.

    WebmistressM

    (@webmistressm)

    `Arguments

    For more information on how to use this function, see the documentation for the GetPostsQuery::get_posts() function.

    limit: —
    offset: —
    orderby: ID
    order: DESC
    include: —
    exclude: —
    append: —
    meta_key: —
    meta_value: —
    post_type: Array (order_queue)
    omit_post_type: Array (revision)
    post_mime_type: —
    post_parent: —
    post_status: Array (publish)
    post_title: —
    author: —
    post_date: —
    yearmonth: —
    date_min: —
    date_max: —
    date_format: —
    taxonomy: —
    taxonomy_term: —
    taxonomy_slug: —
    taxonomy_depth: 1
    search_term: —
    search_columns: Array (post_title, post_content)
    join_rule: AND
    match_rule: contains
    date_column: post_modified
    paginate: false

    Raw Database Query:
    SELECT wgm_posts.* , parent.ID as 'parent_ID' , parent.post_title as 'parent_title' , parent.post_excerpt as 'parent_excerpt' , author.display_name as 'author' , thumbnail.ID as 'thumbnail_id' , thumbnail.guid as 'thumbnail_src' , metatable.metadata FROM wgm_posts LEFT JOIN wgm_posts parent ON wgm_posts.post_parent=parent.ID LEFT JOIN wgm_users author ON wgm_posts.post_author=author.ID LEFT JOIN wgm_term_relationships ON wgm_posts.ID=wgm_term_relationships.object_id LEFT JOIN wgm_term_taxonomy ON wgm_term_taxonomy.term_taxonomy_id=wgm_term_relationships.term_taxonomy_id LEFT JOIN wgm_terms ON wgm_terms.term_id=wgm_term_taxonomy.term_id LEFT JOIN wgm_postmeta thumb_join ON wgm_posts.ID=thumb_join.post_id AND thumb_join.meta_key='_thumbnail_id' LEFT JOIN wgm_posts thumbnail ON thumbnail.ID=thumb_join.meta_value LEFT JOIN wgm_postmeta ON wp_posts.ID=wgm_postmeta.post_id LEFT JOIN ( SELECT wgm_postmeta.post_id, CONCAT( GROUP_CONCAT( CONCAT(wgm_postmeta.meta_key,'::::', wgm_postmeta.meta_value) SEPARATOR ',,,,'), '$$$$') as metadata FROM wgm_postmeta WHERE wgm_postmeta.meta_key NOT LIKE '\_%' GROUP BY wgm_postmeta.post_id ) metatable ON wgm_posts.ID=metatable.post_id WHERE ( 1 AND wgm_posts.post_type NOT IN ('revision') AND wgm_posts.post_type IN ('order_queue') AND wgm_posts.post_status IN ('publish') ) GROUP BY wgm_posts.ID ORDER BY wgm_posts.ID DESC

    [summarize-posts orderby=”ID” order=”DESC” post_type=”order_queue” omit_post_type=”revision” post_status=”publish” taxonomy_depth=”1″ search_columns=”post_title,post_content” join_rule=”AND” match_rule=”contains” date_column=”post_modified”]
    Comparable Shortcode:

    [summarize-posts orderby="ID" order="DESC" post_type="order_queue" omit_post_type="revision" post_status="publish" taxonomy_depth="1" search_columns="post_title,post_content" join_rule="AND" match_rule="contains" date_column="post_modified"]

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    That proves that the shortcode is parsing, so that’s something to celebrate.

    Try grabbing the dev version — I think I borked a bug with the “search_columns” parameter in that…

    From the download page: http://wordpress.org/extend/plugins/summarize-posts/download/

    You should be able to download the dev version:
    http://downloads.wordpress.org/plugin/summarize-posts.zip

    WebmistressM

    (@webmistressm)

    I did try and get the dev version. Problem still exists. Other plugins installed (which could conflict)

    JJ NextGen JQuery Slider, NextGEN Gallery, WP-Mail-SMTP, jQuery Colorbox

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    I don’t think it’s a conflict… I would back off on the parameters until you get results. Like if you know you have posts on your site, then try searching for them:

    [summarize_posts post_type="post"]

    Then try listing your custom post types:

    [summarize_posts post_type="order_queue"]

    WebmistressM

    (@webmistressm)

    <code>[summarize_posts post_type="post"]</code>

    is what I put in a page post

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Why do you put the code tags there?

    WebmistressM

    (@webmistressm)

    I have tried just [summarize_posts post_type=”post”] without code tags and the same result happens`

    Summarize Posts
    Errors
    There were no errors.
    Arguments

    For more information on how to use this function, see the documentation for the GetPostsQuery::get_posts() function.

    limit: —
    offset: —
    orderby: ID
    order: DESC
    include: —
    exclude: —
    append: —
    meta_key: —
    meta_value: —
    post_type: Array (post)
    omit_post_type: Array (revision)
    post_mime_type: —
    post_parent: —
    post_status: Array (publish)
    post_title: —
    author: —
    post_date: —
    yearmonth: —
    date_min: —
    date_max: —
    date_format: —
    taxonomy: —
    taxonomy_term: —
    taxonomy_slug: —
    taxonomy_depth: 1
    search_term: —
    search_columns: Array (post_title, post_content)
    join_rule: AND
    match_rule: contains
    date_column: post_modified
    paginate: false

    Output Type
    ARRAY_A

Viewing 15 replies - 1 through 15 (of 57 total)
  • The topic ‘[Plugin: Custom Content Type Manager] Listing Format With Specific Custom Fields of a Specific Custo’ is closed to new replies.