Tweak wordpress theme back-end management of Portfolio items
$10-30 USD
Closed
Posted about 7 years ago
$10-30 USD
Paid on delivery
Hi,
I have a theme that let's me add a 'portofolio' of works. I use a set of images that I upload through the admin panel for 'edit portfolio'. Each image I upload corresponds to a different 'project/work' in that portfolio.
You can name each item in the portfolio within the same back-end form
I want to add the image filename, when I upload the image, to be the TITLE of the portfolio item.
Portfolio Demo
1. You can visit the site and go to dashboard -> portfolios -> add new portfolio
2. Here you can add 'works' which are the images
3. I'd like the 'title' of the work to be read from the image filename, add into the field in the metabox the filename as the title.
Login to site and ftp details in attached images :)
-> Here you can see the code. Let me know if you can FTP into the site.
Files you need to look @
- wp-content/themes/bazar/core/yit/[login to view URL]
Handles the custom post type
- wp-content/themes/bazar/core/lib/yit/Portfolio_type/Portfolio_type
Code for managing the portfolio for the theme
You will notice in [login to view URL] this function:
/**
* Update images via AJAX
*
* @since 1.0.0
*/
public function update_items() {
$post_id = isset( $_POST['post_id'] ) ? $_POST['post_id'] : false;
// update items in the post
$items = $this->get_setting( 'items', $post_id );
$uploaded_items = $this->_getImages($post_id);
foreach ( $uploaded_items as $item_id => $args ) {
if ( isset( $items[$item_id] ) )
$items[$item_id] = wp_parse_args( $args, $items[$item_id] );
else
$items[$item_id] = $args;
$items[$item_id]['title'] = "TEST";
}
$this->update_setting( 'items', $items, $post_id );
echo json_encode( array_keys( $uploaded_items ) );
foreach ( $items as $item => $value ) {
echo $key . 'has the value' . $value;
}
die();
}
This is where the images are uploaded in the back-end to the portfolio.
$items[$item_id]['title'] = "TEST";
This line works. I can see in the debugger that the title element is being changed (and I could then replace this with the filename of the image).
$this->update_setting( 'items', $items, $post_id );
This line should update the 'items' data in the post_id to the new $items array (with the newly set title variable).
But somewhere this is overwritten, and when we return to the page, the portfolio items have no titles.
I believe it is in the metabox for the post_type_unlimited.
Please let me know if you can take a look and let me know the fix & cost.
Am sure it's a call to update_post_meta somewhere, for each title in the array of portfolio items
NOTE: Please let me know if you can FTP into the site before we start discussion.
Thanks.
Hi,
I have more than 5 years of experience in working on professional websites and blog designs as well as on developments which consist of relevant skills like Wordpress, Joomla, Php, Html, Css, Js, SEO .I also have more than 2 years experience in Computer Security, Web security and virus removal.
I can work under any work pressure or rigid deadlines. I look forward to being hired by you
Thank's
Rinkul
I am Wordpress Developer working from 4 years. As you can see in my profile, I have completed many Wordpress projects. Let me help you a hand in Tweaking WordPress theme back-end management of Portfolio items
Adil Jalal
Wordpress Developer
Hello Sir/Madam
This is steve A.(Business Manager) intellect park. Intellect park is new, growing I.T company. we have strength of 10 professionals working in different technology.
I would like to show interest in your project. I have gone through the requirement you provided in message.
I believe we are enough capable to deliver your project.
Thanks
I am a custom PHP plus WordPress expert having an experience of 3 years. I can help you achieve this task as i have done similar tasks before and can do this work real quick for you and within no time. Kindly respond to my request so we can talk further. Awaiting for your positive reply. Thanks!!
Hello,
We have pool of dedicated team consisting of certified developers capable enough to handle your project exactly according to requirements and within said time frame.
As per shared project description we find ourselves fit for project work, as we have developed several projects with approx. similar features and functionalities.
Looking forward for small conversation to discuss your complete scope of work and suggest/recommend you complete solution.
Thanks
Hi,I'm a Senior PHP/Java Developer with 8 years of professional experience.
More about my experience You can read in my profile: https://www.freelancer.com/u/stormitzl.html
I can do this job for You and many others.
Regards tw.