Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all 8245 articles
Browse latest View live

bbitcorporation on "How to create a url like this"

0
0

Hi All,
i have a question, how to How to create a url like this from the_title()
eg: the_title() : Download Game Free
url like that: domain.com/?s=download+game+free

I want use php to convert " " to "+" in the_title()

Help me pls?


SGr33n on "Cities & countries translation"

0
0

Hi people :)

I'm developing a plugin that make use of google places api.
I have a field address autocompleting with google places informations (city, country).

Since that this site will support multilingual, i was thinking of store cities and countries in english, to ne translated then with a .pot file.

Now... This pot file could be really difficoult to translate, and the one provided by WP doesn't seem complete ( i was looking for italy and Milan but there wasn't ).

Is there another way i can resolve this?

Thanks :)

moin shaikh on "use json api to import post in wordpress"

0
0

i am working on my project , i need to import many post (custom post) , it has many custom field and taxonomy, can any one help me provide a simple example to import data in my WordPress. i don't know how to use Json Api and developing , please help me out , thanks in advance.

Acutake on "Youtube hack?"

0
0

Hello,
I have a problem. I am using simple theme and I am trying to make my website.. Everything is allright but if I sometimes click on any page/button/image, I am redirected to Youtube video. I think there is somewhere a "hidden" code.. I m not so good at coding so I need your help.
Sorry for my bad english I am from Germany
Thank you very much

TCR on "combining RSS feeds to post items through WordPress"

0
0

Hello,

I have written some php code to produce RSS feeds when new data is added to my database. I have a website (customised) with WordPress that is used to display this data which also works as a blog with its own RSS feed (rss2, atom) etc.

I would like to merge my other custom rss feeds into the WordPress RSS so new data is pushed through a combined RSS feed, ideally without hacking the core WordPress code.

I cannot see any hooks in the feed-xxx.php files in WordPress to do this, so was wondering if anyone knew a way this could be done?

Essentially i want to add content to the RSS feed (as separate items) without them appearing as posts on the actual blog - bonus content if you like, to subscribers.

The codex and search of wordpress.org doesn't return very much when searching for RSS and almost all of google returns RSS feed subscription button widgets or taking other site's feeds and publishing them as posts.

zohaibji0 on "How to make sticky popup on wordpress website?"

0
0

I've seen websites using sticky popup button e.g. "Contact Us", "Feedback" - basically it always stays with scrollbar area and when you click on that button, a popup appears with a form or some information... I need to have that for my wordpress website... Wordpress has big database of plugins, so there must be a plugin for that as well...

Demo: http://prntscr.com/3octvg

edow on "Category sidebar seach: checkbox and custom fields problem"

0
0

Hi,

I'm struggling with the following problem for a while. It's almost working, but still not yet. First of all, sorry for my bad English.

I made this sidebar search form (see code below) for my category page to filter the search results based on the tags which are available within the category.

The first part is working great when I use radio buttons, but I want the form to remember mulitple checkbox fields. Someone suggested name="tag[]" but that's not working unfortunately. When I use name="tag" the url output is /?tag=test&tag=test2 instead of /?tag=test,test2 so it won't work properly.

The next problem. I use this function to make a url parameter based on a custom field, but I can't figure out how to use it with multiple keys.

function wpa_filter_home_query( $query ){
    if( $query->is_main_query()
    && isset( $_GET['provincie'] ) ) {
        $meta_query = array(
            array(
                'key' => 'provincie',
                'value' => array( $_GET['provincie'])
            )
        );
        $query->set( 'meta_query', $meta_query );
    }
}
add_action( 'pre_get_posts', 'wpa_filter_home_query' );

And the last problem is that I want to show only keys from custom fields under <h3>Land</h3> and <h3>Regio</h3> just like the code only shows tags which are used. I also can't figure out how to let this work for the custom fields.

The form:

<form name="tags" onChange="document.forms.tags.submit();">
		<?php
		if (is_category()){
		  $cat = get_query_var('cat');
		  $yourcat = get_category ($cat);
		}
		$tag_IDs = array();
		query_posts('category_name='.$yourcat->slug);
		if (have_posts()) : while (have_posts()) : the_post();
		  $posttags = get_the_tags();
		  if ($posttags):
			foreach($posttags as $tag) {
			if (!in_array($tag->term_id , $tag_IDs)):
			   $tag_IDs[] = $tag->term_id;
			   $tag_names[$tag->term_id] = $tag->name;
			   $tag_slug[$tag->term_id] = $tag->slug;
			 endif;
			}
		  endif;
		endwhile; endif;
		wp_reset_query();

		if (!empty($tag_IDs)){
			echo '<h3>Het meest geschikt voor</h3>';
			echo "<input type=\"checkbox\" name=\"tag\" value=\"\"> Show all<br>";
		}
		foreach($tag_IDs as $tag_ID){
			$checked = $tag_slug[$tag_ID];
			echo '<input type="checkbox" name="tag" value="'.$checked.'"' ;
			if((isset($_GET["tag"])) && $_GET["tag"] == $checked) {
			echo ' checked="checked"';
			}
			echo '> '.$tag_names[$tag_ID].'<br>';
		}
		?>

		<div class="margin25px"></div>

		<h3>Land</h3>
			<input type="radio" name="land" value=""> Alles weergeven<br>
			<input type="radio" name="land" value="nederland" <?php if((isset($_GET["land"])) && $_GET["land"] == "nederland") { echo "checked";}?>> Nederland<br>
			<input type="radio" name="land" value="belgie" <?php if((isset($_GET["land"])) && $_GET["land"] == "belgie") { echo "checked";}?>> Belgie

		<div class="margin25px"></div>

		<h3>Regio</h3>
			<input type="radio" name="provincie" value=""> Alles weergeven<br>
			<input type="radio" name="provincie" value="gelderland" <?php if((isset($_GET["provincie"])) && $_GET["provincie"] == "gelderland") { echo "checked";}?>> Gelderland<br>
			<input type="radio" name="provincie" value="overijssel" <?php if((isset($_GET["provincie"])) && $_GET["provincie"] == "overijssel") { echo "checked";}?>> Overijssel
		</form>

Hopefully someone can give me some hints to make this work. It's a great category search form if it's working properly. Sorry if I ask to many questions, but it's all related to each other since it's all meant to make the sidebar filter function work.

Metal_13 on "Where can i edit the built-in wp-playlist?"

0
0

Hi, I need to edit the built-in audio playlist, where can i find the file to edit.

I want to replace the mp3 direct link to the attachment page.

and is there any hacks or mods for the wp-playlist?

[Moderator Note: No bumping, thank you.]


Free269 on "Hide post text and "Continue reading →" from the homepage"

0
0

Hi guys,

I'm trying to hide the post text and "Continue reading →" from the homepage.
I tried to hide it using CSS in several ways and in the end I decided that it's a little bit messy.
I tried to delete the PHP code that is responsible of showing it and now, and it worked, but it also deleted the text in the post itself so no text anywhere.

what is the most simple way to do it?

p.s: all the posts at my blog start with the "more" tag. so the only thing that shows up is the "Continue reading →".
p.s #2: I'm using twentyfourteen theme that I customize.
Thank you.

Sonoquilibrium on "Need to put the image slider on my homepage."

0
0

Hi..

I have the image slider (revolution slider) and I want to put it on my home page.

In the folder of Rev. Slider is said how to do that, but I need some technical help.

For show only on homepage use: <?php putRevSlider("SonoSlider","homepage") ?>

This is written and I don´t know how to use that code and where I need to paste it that my slider will be visible and active on my homepage.

Need help,
Thanks!
Matej

kickback on "Fetching Data From Wordpress"

0
0

So i see this website [link removed] and they have a huge Data base of free movies.

I was wondering if there is a way to fetch data from their website into my wordpress blog?

I mean like it would take years to build that much database so there might be a way i could fetch all the data with on click?

is there any plugin available or i can create?

knub on "[plugin-dev] [solved] Cannot access $_POST in 'edit_form_after_content' action"

0
0

Alright, this has been resolved.

Mark_02660 on "Prefered way to call pages?"

0
0

I am porting some existing code to make a WP Plugin but have a question as to the best way to request pages. As it is now the scripts call pages like this, based on the process selected:
http://somehost/wp-admin/admin.php?page=add&process=view_list

There area about 6 separate options that are called like this, the other problem is what is the proper way to register links line this in the admin area?

The most obvious problem is the file path is hard coded...

Any examples would be helpful.

greatsb on "Automatic Insertion of External References in website showing spam text at googl"

0
0

Hi,

When I see my wordpress website "http://techliebe.com" in a mobile then i see the spam text such as "privatsex sex cam chat sex cam deluxe" at the starting of posts, also it gets displayed in the google search results for each post, When the website is opened from computer then it doesnt show this spam text/ hides it. How to remove this spam text from website?

The Bad External References to my site:

http://tinyurl.com/obkloty
http://bit.ly/1jJFCiz
http://berjadigi.com/7A2

When i search a string "privatsex sex cam chat sex cam deluxe" in google i get About 1,77,000 results in advance search with this exact phrase means so many websites are caused by this hack.

Which element is causing this problem? wordpress or theme or plugin?

How to solve this problem, is this a hack? How to prevent such hacks?

Regards,
greatsb

mikeill on "Ajax Variable not being returned from JavaScript"

0
0

I'm receiving the variable to JavaScript, but not getting it back in PHP, and I think Its not being coded correctly in the JavaScript:

function glitch_player_display(mix_name) {
		alert(mix_name);
		throb.start();
		jQuery.ajax({
			type: 'POST',
			url: ajaxglitch_playerajax.ajaxurl,
			data: {
				action: 'ajaxglitch_player_ajaxhandler',
				mix_name: mix_name
			},
			success: function(data, textStatus, XMLHttpRequest) {
			throb.stop();
				var showglitchplayer = '#showglitchplayer';
				jQuery(showglitchplayer).html('');
				jQuery(showglitchplayer).append(data);
			},
			error: function(MLHttpRequest, textStatus, errorThrown) {
				alert(errorThrown);
			}
		});
	}

This is the php:

function ajaxglitch_player_ajaxhandler($arguments){
	var_dump($arguments);
}

returns empty.


aminuddin on "How to have image widget that have enable/disable capability"

0
0

Hi,
I would like to have a image widget that can be enable/disable using checkbox inside the widget. Currently I'm using PB Image widget and have to delete it(disable) and recreate back if want to enable it back.

Any helps/suggestion are welcome.

annatora on "Sticky facebook button on site"

0
0

Hi!

I was wondering if anyone know where I can call in template, a button to the background?
Basically I want the facebook button to always stay in the left edge of the page.

I am working with a twenty twelve child theme.

Thanks!

thatposhgirl on "wpColorPicker() vs iris()?"

0
0

I'm trying to use the color picker in an admin menu. I tried the method described here:

http://make.wordpress.org/core/2012/11/30/new-color-picker-in-wp-3-5/

But it doesn't seem to be doing anything at all.

Then I tried the method described here for WP 3.6: http://www.paulund.co.uk/adding-a-new-color-picker-with-wordpress-3-5

And no luck there either.

In the first method, the javascript file looks like this:

jQuery(document).ready(function($){
    $('.my-color-field').wpColorPicker();
});

On the other site, that says it is for WP 3.6, it looks like this:

$('.color-picker').iris();

Does it matter if it is calling wpColorPicket() vs iris()?

smlions123 on "Anchoring an entire (contents.php)?"

0
0

In contents.php, there's an <article> element that displays the titles of my posts, in which there is an <h2> tag that is anchored to the actual post it represents.

I want to take this anchor tag and anchor the entire article itself (i.e. <article></article>.

Unfortunately, this doesn't correctly anchor the article. When I inspect the article in Chrome, it looks like this: <article></article>

What am I doing wrong? How I anchor the entire article?

admamza on "Filter search results from categories"

0
0

On my search page there is a column that displays all the categories and the amount but when you click on the category it takes your to the archive page. What I am trying to achieve is that when you click on the "news" category for example it would only display results from the news category.

Not entirely sure on the best way of doing this would the search term & category have to be appended into the url and then do a page refresh?

This is how I am displaying the categories at the moment:

<ul class="categories">
      <?php
      $args = array (
        'echo' => 0,
        'show_count' => 1,
        'title_li' => '',
        'depth' => 1
      );
      $variable = wp_list_categories($args);
      $variable = str_replace ( "(" , "<span>", $variable );
      $variable = str_replace ( ")" , "</span>", $variable );
      echo $variable;
      ?>
 </ul>
Viewing all 8245 articles
Browse latest View live




Latest Images