ujgreg
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-PostRatings] Ratings Not Showing Any Wording?Hi,
Did you figure this out at all?
If I use the php code above, it shows:
***** (1 votes, average: 5.00 out of 5)
When I click a star or if I’m on a post that has been rated with my testing accounts it shows:
***** ()
It should say
***** (2 votes, average 5.00 out of 5)This short code added with PHP works the same as the above:
<?php echo do_shortcode('[ratings]') ?>This short code shows the numbers that I want but doesn’t allow voting/clicking of stars even on posts not yet rated by that user:
<?php echo do_shortcode('[ratings results="true"]') ?>Forum: Plugins
In reply to: [Custom Field Suite] [Plugin: Custom Field Suite] "Array" being returnedHope it’s okay to reply to the same thread. I get this problem with a select field only. I can’t have it anywhere on a page, not in the query, not outside of it. As soon as I change it to a text field, it works and I have other fields displaying as well. Otherwise it displays “array” only. I did add the global cfs as well.
Tried this:
<?php echo $cfs->get('situation_setting', get_the_ID()); ?>And this:
<?php echo $cfs->get('situation'); ?>Both work if I change it from a select field to a text field.
Any ideas? Thanks!
Old post but, it seems that adding: overflow: hidden; to .custom-slider or whatever container is something of a solution and stops the annoying jump.
Forum: Fixing WordPress
In reply to: How to recursively apply a "Featured image" to sub pages?I have a solution here with the option to override the parent page’s featured image with a featured image added to a child page.
Let me know if you have any trouble with it or feedback/improvements. I’ll likely re-use this for a ton of projects and improve it as needed.
Forum: Fixing WordPress
In reply to: How to recursively apply a "Featured image" to sub pages?I’m getting close, mashing up code like a Primanti Brothers sandwich from various readings, codex etc.
I need this to do “if is parent, display current featured. Else display 1st level featured image.” The code below only displays the parent page of the child pages so when in 3rd level it displays the 2nd level apparently. Not sure about overriding but it’s a step closer than where I was.
<div id="featured"> <?php if (has_post_thumbnail( $post->post_parent ) ): ?> <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->post_parent ), 'single-post-thumbnail' ); ?> <div id="featured-bg"> <img src="<?php echo $image[0]; ?>" alt="Title here" /> <div id="featured-caption"><?php echo the_post_thumbnail_caption(); ?></div> </div> <?php endif; ?>Forum: Fixing WordPress
In reply to: How to recursively apply a "Featured image" to sub pages?I am hunting down an answer for this as well, robotor. Did you find anything since you posted?
Any word on this? I need global content blocks. For instance if I create: the_block(‘sidebar-locations’);
It will only display this block on the page /sidebar-locations but not on any other page.
I need to do this with things such as addresses, phone numbers in footers etc. Per below, I can’t for the life of me figure out a way to make the blocks recognized on every single page. I can only get the block ‘header’ to work on a page called /header.
= 1.1 =
* You can now use the_block in your (custom) header, footer and sidebar template files.Hi JLeuze,
This looks like a great plugin. I second the thought of possibly integrating a caption. Any plans for this?