talha8877
Forum Replies Created
-
Forum: Plugins
In reply to: [Latest Post Shortcode] Getting first image instead of featured imageHonestly couldnt figure out how to display it in the $tile
if ( ( function_exists( 'has_post_thumbnail' ) ) && ( has_post_thumbnail() ) ) { if ( ! empty( $args['mainimage'] ) ) { $mainimage = wp_get_attachment_image_src( main_image( intval( $post->ID ) ), $args['mainimage'] ); if ( ! empty( $mainimage[0] ) ) { $tile = str_replace( '[mainimage]', '<img src="' . esc_url( $mainimage[0] ) . '" />', $tile ); } else { $tile = str_replace( '[mainimage]', '', $tile ); } } else { $tile = str_replace( '[mainimage]', '', $tile ); } }
Forum: Plugins
In reply to: [NextScripts: Social Networks Auto-Poster] Twitter Test Post ProblemPlugin Version: 3.4.25 [Single Accounts Edition]
Forum: Plugins
In reply to: [DsgnWrks Importer for Instagram] I fixed bugThis change breaks the site.
Forum: Plugins
In reply to: [InstaTeam Instagram Importer] Auto setting featured image doesn't workI have the same problem. Anybody offers a solution?
Forum: Plugins
In reply to: [Collapse-O-Matic] It shouldn't display in single post pageThanks for the explanation. I will apply this.
Forum: Plugins
In reply to: [Collapse-O-Matic] It shouldn't display in single post pageI’m sorry I didn’t understand what you meant by not using in the content. We use shortcodes to implement the plugin therefore it’s used in the content, isn’t it?
Please see here
If you click on title you’ll see the full post is collapsed as well.Forum: Plugins
In reply to: [visualCaptcha] Error while activatingHi
THanks for the answer.
I have PHP Version 5.2.17 so that’s why it’s not working i guess. is there a workaround for this other than upgrading?Forum: Plugins
In reply to: [KK I Like It] Avatars doesn't show in latest postsIt’s taking me a lot of time but I’m finding solutions one at a time.
So, if Voters only show up on single post pages and not on post lists, you have to change this line in kklikeit/admin.php
if(count($dane) > 0 && is_single() && $kkLikeSettings['show_voters'] == 'on'){
to
if(count($dane) > 0 && $kkLikeSettings['show_voters'] == 'on'){
As you see it was set to is_single() by default and I just removed that.
Now there’s one more problem to be solved.
I use this in a daily deals site and deal posts are different then default post types. I guess this is called a ‘custom post type’.Again , in admin.php the function is set as
function addKKLikeVoters($content){ global $post, $kkLikeSettings;
So it displays Voters only in default post types. Strangely it shows the button in my custom posts lists but not the avatars.
How can I change it from default post type to my ‘wpdeals’ post type so the Voters show up on Deals list as well?
The file that needs to be transferred from Github version is wpuf-dashboard.php, just so if you made changes in the other files.
Forum: Plugins
In reply to: [WP Favorite Posts] [Plugin: WP Favorite Posts] Favorite list on profile pageHi ckhicks,
Did you manage to find a solution to this problem?
First, I’d like to thank sepehr125 for sharing that piece of code but the code has a typo in the last line so it doesn’t work unless you changed gravity_forms with gravity_form so it should be;
gravity_form( 1, true, true, false, $field_values, true);
Second, the corrected code only displays the titles of some pages if you use
get_the_title($favID)
or the links of those pages if you useget_permalink($favID)
. The problem is none of them are actually favorited posts or pages. I don’t know according to what, the code gets those pages?
So still, is there anybody who can alter that code so it actually pre-populates the form field with actual favorited post content?@southcast
First duplicate a template file, change its name and add that above code under <?php the_content
Then create your form as it’s suggested save it, use “message_body” as the parameter.
I didn’t add anything to functions.php to make it work.
just create a page where you want the form to appear and change the page template to your new duplicated template. You don’t need to add the form shortcode since you add the php version.Hey qzha017,
Unless you write something to the excerpt field in the post page nothing shows up. If you want to generate automatic excerpts there are more than enough plugins for that.@solveigm Thanks you so much for sharing your solution
Forum: Plugins
In reply to: [KK I Like It] [CRITICAL BUG] with wp 3.5Widget area doesn’t work anymore as well. I had to disable the plugin top be able to use widget dashboard again.
Forum: Plugins
In reply to: [KK I Like It] Linking Voters to their profileI changed the admin.php line 391
. '<span class="kklike-ava-nick">'. $nick .'</span>'
to
. '<span class="kklike-ava-nick"><a href='. $user->user_url .'>'. $nick .'</a></span>'
but it didn’t returned the result.
Any ideas?I wanted to see if there’s a solution to this. I’m sure a lot of people who use conditional form elements face the same problem.
As an example you have two dropdowns and second dropdown dynamically changes depending on the value of the first one.
When a notification email is sent upon the submission of this form it displays as this;Dropdown 1 value: Value 1
Dropdown 2 value: Value 2
Dropdown 2 value: Value 3
Dropdown 2 value: Value 4
Dropdown 2 value: Value 5Normally it should show one of the Dropdown 2 value that’s related to the value of the first Dropdown Value.