How-to: output of the custom field value in the block template

Posted in: ionMag
Post count: 1

Hi there,

First of all, thanks a lot for an awesome theme! Hope, you`ll help me with my little issue…

Look at the part of CookBook template:

https://drive.google.com/file/d/0B7LTTGuD9H60czRZVTV6czYyRUU/view?usp=sharing

I created 2 custom fields using Advanced Custom Fields Plugin: CF1 (number) and CF2 (external link).
And I need to display this fields in posts excerpts in different content blocks of the theme using get_field() function.

Would you be so kind and explain to me where should I:
1) Declare the necessary function(-s) correctly – functions.php or anywhere else;
2) Change blocks template files to see the necessary fields values;
3) Change blocks CSS files to customize that fields output styles.

Thanks in advance!

  • This topic was modified 3 days by  avtrrr.
Simion C.
Post count: 153

Hi,

The modules can be found here
https://www.screencast.com/t/jroGNG45l6F
That is where the module data is called, the excerpt as well where available. The main module file is this one
https://www.screencast.com/t/Uqds9PbdRW
The blocks are found here
https://www.screencast.com/t/myPdbEs5
The main block file is this one
https://www.screencast.com/t/aDqLLNxxvBh
CSS code can be added to the theme stylesheet directly or in the theme panel dedicated sections.

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.