sofielyr
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Add custom fields to excerptI figured out how to add one custom field… It looks like this in functions.php:
function custom_field_excerpt() { global $post; $text = get_field('price'); if ( '' != $text ) { $text = strip_shortcodes( $text ); $text = apply_filters('the_content', $text); $text = str_replace(']]>', ']]>', $text); $excerpt_length = 20; // 20 words $excerpt_more = apply_filters('excerpt_more', ' ' . '[Hello...]'); $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); } return apply_filters('the_excerpt', $text); }
And I added a div in the index.php
<div class="customfieldsim"><span><?php echo custom_field_excerpt(); ?></span></div>
Now my problem is the following…
I have added a backround picture to my div but I would prefer to add a clickable picture that shows up on the same line before the custom field that I have called. Basically my first custom field is “price” and the value for my custom field is “low price” but I want an image in front of it that I can click on that will lead me to to the correct post…
Then…
I want to add several custom fields below the price field.. How do I do that?
Forum: Plugins
In reply to: [Paid Business Listings] [Plugin: Paid Business Listings] implementation linkI would like to know how to change the currency to € on this plugin.. Apart from this I love the plugin!
Forum: Fixing WordPress
In reply to: Display random posts from featured category slideshowYey!! Thanks so much!! It worked wonderfully!
Forum: Fixing WordPress
In reply to: Display random posts from featured category slideshowIs there no-one who can help me with this? Please i beg you!!!
Forum: Fixing WordPress
In reply to: Only show categories inside one static pageHi esmi,
I solved the issue by making four links to the category pages manually. I have made it so that the new posts fall into these categories. Now I have whole different problem with configuring e-commerce… Can’t get the category groups to show…But thanks for replying!
Forum: Plugins
In reply to: plugin – e-commerce problemJust wanted to know if there is anybody that knows how to fix this…. I am using WP 2.8
Forum: Plugins
In reply to: Can’t edit Products PageOh I just saw that you had resolved your problem… Might I ask how?
Forum: Plugins
In reply to: Can’t edit Products PageI have the same problem.
I think it might have to do with that you have a newer version of WordPress that is not compatible with the e-commerce.