VisualData
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Front End User edit profileHi there,
Have you found a solution yet? Editing of user profiles at front-end is not an easy task and needs some knowledge about php and html. Are you comfortable with some php code? if not, you may need a developer to help you with this.
What plugin are you using that creates the custom fields? If you have access to phpmyadmin, you can find out the name of the custom fields from the database table, and how the data are stored. The name of custom fields are usually stored in a table called wp_usermeta, in the column called meta_key. if you have changed the table prefix during installation, the table name will be your prefix followed by usermeta. you can search by user_id and see what custom fields are there.
if the data is stored in wp_usermeta table as plain text and numbers the same way as it was entered, you can create a page at the front-end for users to edit profile using the following approach.
here are the steps involved.
1. install and activate a plugin called pods,
2. in pods admin panel, extend the existing content type User, use default meta storage, and create custom fields with the same name as the custom fields created by your plugin.
3. create a page template in your theme folder. if your page slug is edit-profile, your page template needs to be named page-edit-profile.php.
4. you need to use an if statement to check the user login status and retrieve their user id, and wrap the code to output the edit form.
5. you may use an array to specify what fields to show in the form, and use the “form” function to output an eidt form. Please refer to the documentation on pods.io website for detailed instruction about how to use the “form” function. there is a short code for pods form but you still need to check user login status as mentioned in the above step.
in this approach we use pods to retrieve custom fields data from user meta table, update it, so that the other plugin can use the same data later.
This approach will not work if the other plugin stores data in an encoded format. It is still possible but some development work will be required.
please let me know if it works for you.
Oliver
Forum: Fixing WordPress
In reply to: Multi User PagesHi Andy, yes it is possible. this is actually how WordPress handles pages and posts. You may use a page template to control what contents and how to display, and store the data in custom fields associated with the users. Photos and documents can be uploaded and stored in custom fields too. custom fields plugins such as PODS can extend User with custom fields or create new content types for users to submit content in the front-end. It has short codes and templates to show contents.
Please let me know if you need further help.
Forum: Hacks
In reply to: Custom post multiple uploaderyou may need to provide more details about your code for people to help you. the array and forms produced are not enough to tell why the import fails.
I solved a similar problem using wp all import and pods, and have actually coded a custom fields importer plugin for this. image can be imported in one custom field, and displayed in custom post by reading the value from the image custom field. the premium version can handle images.
Forum: Hacks
In reply to: Replicating Menu Functionalityhave you tried pods? it is possible to extend page with custom fields, or to create a new custom post type with hierarchical structure. if you need navigation menu, it is probably easier to extend page.
Forum: Fixing WordPress
In reply to: Structure site with thousands of pages?these are just pages. WordPress stores parent/child relationship in the table posts. with WordPress you don’t need to create a site tree beforehand. when you create pages, if you choose a parent page from the existing page, the relationship will be created for you, WordPress is much easier to use.
Forum: Fixing WordPress
In reply to: Displaying Custom Fields on One-Page SiteHi,
How did you create custom fields? If you use a plugin , the plugin author may have provided ways to display the custom fields
Forum: Fixing WordPress
In reply to: Database Relations and Tables in PHPHi,
you may use a plugin to create custom fields for posts and store the extra information in the custom fields. My favourite one is pods as it is easy, flexible and powerful without much coding . Custom fields can be displayed using pods template which can be configured in admin backend .
I hope it helps.
Forum: Networking WordPress
In reply to: Moving two LARGE individual WP sites into Multisite installationhave you tried WP All Import? it should be able to import pages and posts to multi site, and update contents in the future by running the import again. it divides big files into small manageable chunks before import so a few thousand records are not an issue.
Importing huge media files can be tricky. you may use FTP to upload the images to the site specific upload folder which may take hours depending on your internet connection. if you need to manage these media files using WordPress media library in the future, you will need to create records in the sub site posts table (images are stored there as custom post type called attachment).
good luck with the migration.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Import from tableinterestingly, I have been thinking of writing a plugin to import some data from a separate mysql table into TablePress table for a better user interface. TablePress is great to present data as a table.
Forum: Fixing WordPress
In reply to: Structure site with thousands of pages?Here is a travel agency website with over 150 pages in navigation menu. It was built with WordPress on shared hosting. pods was not used on this website.
The best way to find out whether pods works for you is to try on a test server, or local dev environment.
Forum: Fixing WordPress
In reply to: Structure site with thousands of pages?it is not uncommon for popular wordpress websites to have thousands or more posts. Posts are handled efficiently, even with taxonomy.
I use pods to manage more records without taxonomy (the records don’t really need taxonomy), and use relationship fields to drill down and filter these records and show a list of relevant records, similar to how taxonomy works. there are some tricks in running an optimised query with relationship fields. pods is able to handle thousands of records with ease. if you use many custom fields, you may consider table storage to reduce the number of joining queries.
Forum: Fixing WordPress
In reply to: Inherited website, unsure how to edit table/listthe home page may have been created by a page template which runs some queries and produce the links. you may check the theme setting or theme folder and see which file is used to produce the home page. it is good practice to always back up the files and try your changes on a test server before making changes on a live site.
Forum: Fixing WordPress
In reply to: Multiple organisation user loginsHi Jamie,
You are welcome. Pods is quite unique in handling bi-directional multi select relationship fields. and it is possible to create very neat user interface to achieve complicated tasks with a few clicks. You will love it once you know how to use it. It is a powerful framework with extensive documentation. I use pods in my own projects, and have coded a custom fields importer add-on plugin to handle data import to pods efficiently since one didn’t exist.
here is a comparison of custom fields plugins.
for the project I have done similar to yours, I created custom post type for each company, and use relationship fields to associate it with authorised users and ordinary users. a company may have a few admin users, and an admin user may manage a few related companies.
if you allow users to submit contents, then all the contents they create can be associated with the company so company admin can have access to these records, but not the records of other companies.
cheers.
Oliver
Forum: Fixing WordPress
In reply to: Structure site with thousands of pages?I guess the customers will be willing to listen, and happy to have a fast loading website with easy user interface. they will appreciate it in the long run.
If you don’t really need taxonomy, you may create a custom post type with pods without assigning a taxonomy. most likely users will be searching for articles from the 3000+ articles rather than using navigation menus. I have coded a plugin CIO custom fields importer which is available for free download. It may help you to import data to custom post type with custom fields created with pods, if you choose pods for your project.
Forum: Fixing WordPress
In reply to: Structure site with thousands of pages?3000 records should not be an issue for modern servers. however 3000 pages can be overwhelming for users to navigate. have you thought about storing some of the records as a custom post type with custom taxonomy?