Custom Issues

Posted in: Newspaper
Post count: 18

1. I would like to make my header option look like this

Left Ad + Logo + Right Ad

2. I’ve made custom fields for my documents format. So far i’ve been able to display the field values


$buffy .= '<div class="doc-info">';
$buffy .= get_post_meta($this->post->ID, "label_pub", true);
$buffy .= '</div>';

I’m having trouble displaying the field label and somehow i can’t get echo or print to work in the buffy loop.

Thanks for prompt help

Post count: 3343

Hello,
1. You have to make this directly in file, go to parts folder like header-style-1.php and make 3 div with span 4. Make like here: http://screencast.com/t/vmVakZyn
and change the default ad values for the header here: http://screencast.com/t/1J938eZEW

For 2 Radu will reply to you.

Post count: 854

hi,
‘$this’ special word is used when you have are inside an object.
i have search this function: get_post_meta , there is a lot of info here :
http://codex.wordpress.org/Function_Reference/get_post_meta

http://screencast.com/t/xjFxRC0dKoz

also in wordpress there is the $post global variable, in witch all the post variable are kept, you can use somthing like $post->ID, to get the id of current post.

Thanks for you message.
Radu A.

Post count: 18

Hello Marius,

I’ve Made the 3 Divs like you advised.

How do I create an adspot for the left ad and the right ad because it’s still showing me one header ad spot.
Thanks
Effiong

Post count: 18

Hello Radu,

I”ve been able to display the field values but what i need is how to echo field labels

Here’s what i want


<?php echo "Field Name:"; ?>

Obviously this wouldn’t work but i can’t figure out the right syntax to echo that string in the loop.

Post count: 3343

Hello,
What type of ad do you want there? Google adsense? Will work with one single code for the header section and will give you 2 ads for the header.

Post count: 854

hi,
where did you saved those labels?
can you make me a print screen, and also describe a little bit more the hole story.

in php script that start with you cannot use is wrong

wrong : ————————

?> —————————

ok

or if you add this text to another text use ‘ . ‘ (dot) to concatenate the strings.
like:

Thanks for you message.
Radu A.

Post count: 18

Hello Radu,

I’ll be using the normal image ad that the theme provides for. So i will appreciate the two ad codes for the header. one on the left of the logo and the other on the right.

Google Adsense is not a priority, only a plus if you can find time to hack it up for me.

Regards
Effiong

Post count: 18

Hello Radu.

Here are the screen shots.

First, this is what i want to achieve

http://www.screencast.com/t/wzpBfWUnAiZC

Here are the custom fields i created.

http://www.screencast.com/t/khHdyzKOxDGW

and the edits i’ve done on module 8 to display the custom field

http://www.screencast.com/t/DXuor6hWqC0

As you can see, i want to echo the “Field Name:” of each custom field before displaying the value and also be able to style it with css to look like the first image

Regards,
Effiong

Post count: 854

hi,
thank you for your print screens:
you cannot add echo, we optimized the file for speed using $buffy.
what i don’t see in the print screens : where do you add the ‘labels’? or the labels
are automatically added when you get the data?

give me the link to the page, maybe we can do something from css

i see that you addet `
$buffy .= ‘<div>’;
$buffy .= get_post_meta_ ……..
$buffy .= ‘<div>’;
`

add a class to all the: $buffy .= '<div>';
like: http://screencast.com/t/hlHbBQmR4uS

maybe we can attach some style using that class

Thanks for you message.
Radu A.

  • This reply was modified 12 years by Radu A.
  • This reply was modified 12 years by Radu A.
  • This reply was modified 12 years by Radu A.
  • This reply was modified 12 years by Radu A.
Post count: 18

Hello Radu,

If i cannot do echo due to $buffy, there must be some syntax to display text right? How can i do that?

i want to add the field label text here http://www.screencast.com/t/r6z26Ibr5P before doing get_post_meta. Maybe as a concatenation

I can do the styling, i just need to get the labels displayed

I can’t give you access because i’m doing it on a local development server

Regards,
Effiong

Post count: 18

Hello Marius,

Please where are we on the ads?

Regards,
Effiong

Post count: 3343

Hello,
http://screencast.com/t/9Awrc4snd9

Thanks for the message!

Post count: 854

hi,

if you take a look at my email there is a question there : what i don’t see in the print screens : where do you add the ‘labels’? or the labels are automatically added when you get the data?

like a said add classes to the div: $buffy .= '<div>';
http://screencast.com/t/hlHbBQmR4uS

and maybe we can do something from css.

also provide link to the page.

Thanks for you message.
Radu A.

Post count: 18

Hello Radu,

I don’t quite understand your question. I have already indicated where i’ll love to add the labels in the screencasts.

Just so there’s no confusion, i’ll take it from the top.

I’m Using advanced custom fields plugin to create custom fields for my document Category.

I’ve created three fields:

<li>Name of Author</li>
<li>Date of Publication</li>
<li>Name of Publisher</li>

Now ACF Normally posts only the values of the fields to the database and not the Field Names. In a normal post loop i could use echo to display a Field Name Text and then concatenate it with the field value so that my front end would look like this

Field Name: Field Value

due to the $buffy optimisation, i am unable to use echo so i’m looking for a workaround that would enable me add Field Name (Labels) automatically to each Field Value.

Concerning the issue of adding classes to the div, give me the CSS code which you believe will style the solution and i will add it to the CSS.

Like i stated in my last reply, this is a local development server. WordPress installed on XAMPP on my PC, so i can’t give you any link because the site is not live.

I’m looking forward to having this issue resolved and also it takes too long between replies so effectively this issue has taken us four days now. Please see how you can expedite a solution i’d appreciate it much.

Regards,
Effiong

Post count: 18

Thanks Marius,

I appreciate it…thruthfully i had to downgrade my version because the new ad system wasn’t working out for me particularly the sidebar ads.

The old ad system allowed us to create multiple ad spots and place them where we wanted.

i hope these new custom ad spots will allow us to create multiple instances.

Regards,
Effiong

Post count: 170

Since this is a responsive theme the new ad system solved everything for me – works perfect – just choose responsive Google adsense and everything adapts

For other ads use the plugin Adrotator and use shortcode to place your ads wherever you want

Post count: 3343

Hi,

@nsisongeffiong
we will release an update that have more custom ad spot that you can use it where you want.

Thanks

Post count: 18

@stefan I love the theme, responsive and all. I just don’t want to use another plugin to manage ads when my theme has the potential for an amazing ad system

Post count: 18

Hello @radu

Any Headway on the custom field labels?

Regards,
Effiong

Post count: 18

@marius Thank you. I’m hoping the update will come over the weekend so my site can go live soon

Post count: 3343

Hi, We will release the update Monday.
Thanks for the message!

Post count: 18

Hello @Marius

Would it be possible to get my update early via mail so i can go live ASAP since it usually takes a bit of time for themeforest to seed its updates.

Regards,
Effiong

Post count: 3343

Hi,
The update is live 3.1, for header please use Style 3.

Post count: 18

Hello Marius,

Thanks for the update. I’ll need some styling to make it align better

http://www.screencast.com/t/9e849WHGK8

Also, Marius where in the theme can i declare extra ad spots. i really do not want to use Adrotate or any other ad plugin. i love what the theme offers and would love to stick to it as much as possible.


@Radu

I still have issues with these custom fields

What i’ve done is to create the labels as custom fields themselves and called them with “get_post_meta”

I’ve added class to the div here http://www.screencast.com/t/4JZqkE4TET
and styled the category page display. This is what i’ve achieved. http://www.screencast.com/t/9JPbQNE10q8U

The only problem right now is the single post page.

where do i put the code here http://www.screencast.com/t/BYm4TeONw

so the custom fields can display here too http://www.screencast.com/t/FkDUwynx

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