How to edit Posts Loop created with Cloud Library?

Posted in: Newspaper
Post count: 17

Hi, I have a problem with the “posts loop” that I’ve added to my Home Page using the “Cloud Library”.
I need to make a little edit to the posts that appear on the “posts loop”
Where are the files generated by Cloud Library for that element added?

Thank You

Post count: 35449

Hello,

The post loop from tagDiv Cloud can be found in -> wp-content/plugins/td-cloud-library/modules/tdb_module_loop.php -> https://www.screencast.com/t/vsTA5TfzFWb

Hope this will help you!

Post count: 17

Thank you!
I made a little change and everything until now is fine.
But now I have a problem that really I don’t understand why is happening.
I have in my theme a function that call an other field instead of the classic excerpt.
So I use this field in substitution of excerpt.
Now I need to use it inside the tdb_module_loop.php
This is the code:

$excerpt = '<div class="td-excerpt">';
//$excerpt .= $this->get_excerpt($excerpt_length); COMMENTED
$excerpt .= get_field('abstract', $this->post->ID);
$excerpt .= '</div>';

But I get this error: Notice: Trying to get property of non-object in /home/devlibreriamo/public_html/wp-content/plugins/td-cloud-library/modules/tdb_module_loop.php on line 31

Post count: 17

I resolved, I post the solution just to let you know:

To access the post meta inside the loop I made this edit


$excerpt = '<div class="td-excerpt">';
//$excerpt .= $this->get_excerpt($excerpt_length);
$excerpt .= get_post_meta($this->post['post_id'], 'abstract', true);
$excerpt .= '</div>';

Post count: 6

zeroc00l, thanks for “get_post_meta($this->post[‘post_id’]…);” You helped me! Thanks!!!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.