3804 posts
  • Elite Author
  • Author Level 11
  • Trendsetter
  • 7 Years of Membership
+12 more
KrownThemes
says

Is it ok with to have a really long string inside a single meta key on a post? I am talking about a heavy array inside a simple string..

Or should i look into multiple meta values in the same meta key?

640 posts
  • Affiliate Level 8
  • Author Level 14
  • Collector Level 4
  • Front Page Master
+12 more
Kriesi
says

should be ok. my framework saves the whole theme options array into one field, I have tested it while I was building it, there were no performance differences compared to multiple fields.

1899 posts Multimedia Artistry
  • Elite Author
  • 4 Years of Membership
  • Freebie
  • Most Wanted Winner
+4 more
dnp_theme
says

As far as I know all of the meta information (keywords, description, others) must be no more than 256 characters, no matter if you are on homepage or post page. The more concise the better.

If you are talking about incredibly long keywords they could be used when makes sense as a whole and ONLY if they are related to the page content. EG: [one way street] or [all round lenses]

Technically yes, you can use them. I’ve never encounter any limitation.

3072 posts
  • Affiliate Level 3
  • Author Level 6
  • Collector Level 2
  • Weekly Top Seller
+7 more
wickedpixel
says

Wordpress, right?
From what I know, meta values are the same type as post_content fields – mysql longtext – stuff that can hold 4gb of data. Pretty big I can say. If you need all the data at once, then a single field can be good.

@dnp 255 characters is for the name of the metakey.

3804 posts
  • Elite Author
  • Author Level 11
  • Trendsetter
  • 7 Years of Membership
+12 more
KrownThemes
says

Yes, i am now trying to build my own content composer and wondered if it’s ok to hold the page data(arrays) into a hidden textarea and save that as a meta key..

272 posts The Dominant One
  • Affiliate Level 3
  • Author Level 9
  • Collector Level 4
  • Top Monthly Author
+7 more
wptitans
says

Are you using a separate panel for content composer or inside edit posts section, I earlier tried adding content composer to edit posts section and it got buggy :P .. Better to create a separate db table for it, that way you can create lots of templates independent of a theme.

1565 posts
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 2
  • Featured Author
+2 more
OriginalEXE
says

Are you using a separate panel for content composer or inside edit posts section, I earlier tried adding content composer to edit posts section and it got buggy :P .. Better to create a separate db table for it, that way you can create lots of templates independent of a theme.
Isn’t it better to create a custom post type then? That way you don’t have to create a separate table for it and you already have all the functions for management you could possibly need.
3804 posts
  • Elite Author
  • Author Level 11
  • Trendsetter
  • 7 Years of Membership
+12 more
KrownThemes
says

I was trying to do it inside the edit posts section..

1565 posts
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 2
  • Featured Author
+2 more
OriginalEXE
says

I was trying to do it inside the edit posts section..
I believe that is the best way to do it.

For example, you can create AJAX saving/loading of the templates, that way you save users some time as they do not have to recreate a teplate from scratch on each post/page.

And you can save templates as a custom post type that is hidden from the ui.

272 posts The Dominant One
  • Affiliate Level 3
  • Author Level 9
  • Collector Level 4
  • Top Monthly Author
+7 more
wptitans
says


Are you using a separate panel for content composer or inside edit posts section, I earlier tried adding content composer to edit posts section and it got buggy :P .. Better to create a separate db table for it, that way you can create lots of templates independent of a theme.
Isn’t it better to create a custom post type then? That way you don’t have to create a separate table for it and you already have all the functions for management you could possibly need.

that way we are back to posts meta, it is a personal choice imo . When you have a template not relating to any post you can re use it any where.
Goto edit post / custom post / page , select template from a drop it insert via shortcode done ;) .

by
by
by
by
by
by