WPML to exclude particular ACF fields from translating - advanced-custom-fields

I am creating a page in WordPress that contains acf fields such as: company name, address email etc
This page needs to be translated into 9 different languages. For this I'm using wpml.
Is there a way that I can specify for wpml to NOT translate a particular act field such as the company name?
For example if company name is 'forever young' I don't want company name to turn to another language.
I have done much research but can't find any solution to this. Can somebody help?

Related

About Slugs Creation in codeigniter

Hello Every Every One here me.
Actually me trying one thing from many days it about URL means me want friendly Url in my site Besides showing id etc there.Like (www.abc.com/this-is-me-from-php-show-test) in replacement of this (www.abc.com/controller_name/function/23) kindly help me as soon as possibly by badly i have no written code for you guys.just suggest me any site or tutorial about it.both suggestions appreciated dynamic slugs or static.Thanks
Assuming you have a table called projects and currently it is identified by the id field e.g. localhost/projects/get/123 then you should create another column in that table for slugs where you put the name-of-the-project. Then in your get($slug) function instead of querying the id field for the specific project query the slug field.
You can use a 3rd party library to generate slugs: https://github.com/ericbarnes/CodeIgniter-Slug-Library/blob/master/Slug.php
Then just write a script to populate all of the slug fields and it might be a good idea to test if the $slug field is an integer indicated a legacy id for current SEO purposes (to prevent broken links).

web & database relationship infrastructure

One of my new clients needs his collection of sport website redesigned/-developped.
The collection consists of the following:
1 country website
2 region websites
1 for each province (around 5 or 6)
My problem is the following:
Each website has it's own features/data like news posts, tournaments, region rankings...
but there are also common data between them, for example players, clubs, global rankings.
My question is the following:
How sghould I structure my database?
One database for each website? and copy commonly data with each query?
One database for all. and use some type/region field.
Thanks
I think you could look at like a tenants solution, having its own database can have it benefits, but I think in this scenario it is overkill, and what if you maybe wanna use something from site 1 on site 2? (Don't know if that's gonna happen) But for example let's take the posts table
Posts:
id
Title
Text
province_id
Province:
id
name
region
The province as I understand it is the "lowest" in the structure meaning, they are always under a region, correct? This way you can referer what posts to show at which province, then you have to either do a trait or a global scope, adding a where statement with the provice_id. Try searching for some tenants guides, there are plenty out there showing how to do this.
Reading the post again a province might not be under a region? The Same concept applies though, just use another name than province, and maybe add a flag to tell if it's a province or region if you need that information

Orchard CMS: presenting 1:n tables data

I want to use orchard for a medium-sized company site.
The old site was written in pure ASP.NET 3.5 and had for example this database-tables:
Departement:
ID,
Description
Contact:
ID,
DepartementID,
Name,
Image
No problem to make a page, listing the departments, linking to another page, where the Contacts are presented in a list (html-table)
with an SQL like
SELECT Name, Image From Contact Inner Join Departemnt on Contact.DepartementID = Departemnt.ID...... or so...
How would I mimic this in Orchard?
Or even better... could I create these tables inside the Orchard-db (or an external db) and write a (classic) ASP.NET page that presents the data inside the Orchard-Website?
Would I need to create a Module for this (How?)
Would these tables be searchable from the Orchard-internal search? (indexed by Lucene?)
I also need to make a Create/Update/Delete-page for the tables.
...inside the Dashboard? (as they have to be protected/authorized access only)
Lastly... I do NOT want to have every single record show up as a Content-Item in Dashboard!!
I need one CRUD-page with traditional record-per-line, sort, pageing, update/delete like in a conventional Access-Form
Is this at all possible in Orchard??
Thank you,
Reinhard
Of course it's possible (read http://docs.orchardproject.net/Documentation/Creating-1-n-and-n-n-relations), but if you want the benefits of content types, such as searchability, just make it a content type. Content types won't necessarily appear in the list of items. They will only appear if they are marked creatable, so just don't mark your types as creatable and you should be good to go.

In web development, what are "term", "taxonomy terms" and "vocabulary"?

I need to create 2 more tables with purpose: one table will store tags and categories data (categories can have a hierarchy but tags are not) and another table store relationship between tag, category and content. But I so confused about name of those 2 tables. I'm really a newbie in web development. After googling a bit, I found some words like term, taxonomy terms and vocabulary from drupal and wordpress. But I have no idea what they mean. Can you explain those words and help me give a name for my two tables. Of course if those tables are not well design for my purpose please guide me too.
content{
content_id
...
}
table_A{
type (tag, category, ...)
name
parent_id
}
table_B{
table_A_id
content_id
}
With relevance to wordpress, those words are indeed confusing. If you are using wordpress to build a site, you shouldn't need to worry about the database tables for storing taxonomies and terms as it has built in methods to handle all that.
You'll notice when you're in the wordpress admin panel editing a page or post that there is by default a box on the right which calls itself "Categories" and allows you to create new categories. Once one is created, you can add your posts or pages to any "Categories" you've created. I'm sure you understand that already.
As wordpress releases were built, people started asking for more customizing control over categorizing their content. So developers added "custom taxonomies" to wordpress. For clarity, I should mention that "Categories" is the name of a default "Taxonomy" built into wordpress.
A taxonomy is a group of terms. So when you create a "Category" in the right hand box of the admin panel (say "news" for example), you are creating a "term" named "news" which belongs to the "Categories" taxonomy.
This allows a developer to define their own taxonomy (let's say "products") and associate it with pages, posts or any other "post type". So if it's associated with just plain regular "posts" in the admin panel. A box exactly like the existing "categories" box would show up upoon editing but would call itself "products" instead. Anything added to that list would be a term under the "products" taxonomy.
Hope this clarifies things a bit for using wordpress. These terms can be used differently in different contexts so nothing I've said necessarily applies to anything outside of the wordpress package. Unfortunately there is often no universal "web development" meaning for a given word you may see thrown around in discussion.
Taxonomy, last time ago, means categorize life organisms. Similarly, in computer engineering, taxonomy means categorize terms, can be substantive(three, car, cat), verbs(go, be, do). Taxonomy and terms can be mens anything, but the concept is a data structure and hierarchy

Getting a list of random place names and person names

I want to demonstrate a product to a potential new customer.
The best source data comes from an existing customer.
I want to use the existing customer's data for the demonstration, but without compromising confidentiality in any way.
The best solution I see is to run a script that replaces all of the names, addresses and locations in the database with randomly selected names.
So, now I need to find a list of place names and person names to use as a source. Preferably this would be in a text file so it can be read easily.
This seems like a pretty common problem. Does anyone know of a site that I can download these names from?
Check out: http://infochimps.org/, for example: http://infochimps.org/datasets/d-1990-census-name-files and http://infochimps.org/datasets/word-list-10-000-common-place-names
I know this question is a bit old, but here's my 2 cents.
I wanted to also suggest that you could pull down data from public universities. For example,
http://www.wisc.edu/directories/?q=john+smith. You can find other open directories for all state schools.
All it would take is writing a script that loops through a list of names, EG http://www.behindthename.com/top/lists/us/2010/1000, and for each name searching a number of publically accessible directories and saving the first 5 results.