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

natasha2014 on "Ridiculous spam in my website"

$
0
0

Hello, I hope someone can help me. I am inundated with tons of spam mail on my website. They will pick a topic that I post and reply to it with "ray ban sunglasses special or ugg boots or designer shoes and bags"
Yesterday i received over 175 that I had to delete. They are coming from Wordpress and goes directly to my email account....notifying me to "approve, delete or spam" What can I do to stop this!!! Please help!!
Thank you.


luciole135 on "What is jquery-core ?"

$
0
0

By performing var_dump($wp_scripts->registered['jquery']), I noticed that this script has for dependency 'jquery-core'.
But according to the codex of the wp_register_script() function, this handle 'jquery-core' has the path /wp-includes/js/jquery/jquery.js
http://codex.wordpress.org/Function_Reference/wp_register_script

Is it normal that 'jquery' has for dependency 'jquery-core', which seems to be himself, if I have understood correctly?

Sorry for my english i use a translator.

illinoisdev on "Adding a sort function by user entered numbers"

$
0
0

I'm trying to add a sort function - where an admin can enter a number in a box to sort the listings.

I've looked for some solutions, but just am not finding it. I'm thinking it's tied in with meta-box and function.php

Thanks for your input...

cico82 on "Password protection from read more. I'd like to see excerpt of post"

$
0
0

Hi
anybody have some suggestion? plugins? php?
I want to protect some post but I'd like you could see the preview of the password protected post.
Thanks

wtyzzzz on "Woocommerce (Product Short Description css to edit type leading)"

$
0
0

Hi

Is there any possible way for me to edit the leading (line height) of the Woocommerce Product short description?

I managed to edit the product title by inserting the code below in the theme css.

.product_title {
font-size: 3.5em;
font-family: baskerville;
font-weight: normal;
color: #58595b;
}

Hence, i tried many different ways to edit the product short description...

.product_short_description
.product_description

All these did not work....
Please help!!

Thanks!

Sofia55 on "Registration form on front page"

$
0
0

Hello,

I am trying to add the WordPress registration form to homepage through template.

I got as far as creating front-page.php and I am not sure where to go from here.

Ideally Front page/homepage will have logo, a short description of the site and the registration form.

Any help with this would be appreciated!

misharnet on "Theme Check problem"

$
0
0

I am creating my first WP Theme and I would like to upload it to wordpress.org. That's why I use, as recommended, Theme Check Plugin.

I resolved other issues, except these two.
1. REQUIRED: The <title> tags can only contain a call to wp_title(). Use the wp_title filter to modify the output

I understand that is related to title tag in header.php, am I wrong?
This is my header:

<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->

<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>" />
	<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title><?php wp_title( '|', true, 'right' ); ?></title>
	<meta http-equiv="cleartype" content="on">

	<!-- Responsive and mobile friendly stuff -->
	<meta name="HandheldFriendly" content="True">
	<meta name="MobileOptimized" content="320">
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<link rel="profile" href="http://gmpg.org/xfn/11" />
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

	<?php wp_head(); ?>
</head>

What is wrong with it?

2. REQUIRED: screen_icon() found in the file class-tgm-plugin-activation.php. Deprecated since version 3.8.

Line 381: screen_icon( apply_filters( 'tgmpa_default_screen_icon', 'themes' ) );

Line 1584: screen_icon( apply_filters( 'tgmpa_default_screen_icon', 'themes' ) );

I understand that, but I don't know with what should I replace it?

I am really greatfull for your potential answers.

Page Duster on "Menu shows old deleted post as index page"

$
0
0

When I started building the site using Canvas I had a post as the Home (index) page. I deleted it but could not get it to disappear. I finally created a "menu" for wordpress using the menu but when I go to the home page the old page stills shows up and my home page has an id=75
See below then click one of the other links then click home...

www. foundersfreshmarket.com

HELP


joh3 on "Sort Posts by Number / Convert longtext to int"

$
0
0

Hello,
I want to list my custom Posts by their ranking.
The Problem is, that the meta_value is saved as a longtext in the database.
So the list shows up the wrong order:
1
10
2
3
4

Here is my code of getting the data fomr the database:

add_filter('posts_orderby', 'ranking_order');

function ranking_order($orderby)
{
		global $wpdb,$wp_query;

		$orderby = " (SELECT distinct $wpdb->postmeta.meta_value
		from $wpdb->postmeta
		where ($wpdb->posts.ID = $wpdb->postmeta.post_id) AND $wpdb->postmeta.meta_key ='_ranking'
		ORDER BY CAST('_ranking' AS DECIMAL)DESC)
		ASC, $wpdb->posts.post_date DESC";
	return $orderby;
}

I'd be glad for any help.

colchesterTaxis on "BACKUP"

jaanshen on "sort posts by date or random - controlled by "toggle" in sidebar?"

$
0
0

I'm not a developer, but I generally can manage to snoop around and frankenstein together code… so forgive me if this is a stupid question.

My site is a tweaked version of the Pronto theme. The posts are basically an image with a title and its tags (just realized that sounds like an adult site, but it's not, ha). They number in the hundreds. In the sidebar, I'd like to have a "Sort by newest" button and a "Random order" button that function on the main page as well as when viewing only a category or a tag.

Unfortunately I can't post a link because it's tied to a future release date.

I've found some help on the forums with randomization of posts, but they don't seem to apply to what I'm specifically hoping to accomplish. Is my goal particularly complicated to achieve?

DoodleDogCody on "custom taxonomy pagination"

$
0
0

I have a custom post type called ddc_products and a custom taxonomy called ddc_product_categories.

The products template works just fine for all pages in the pagination. But the taxonomy template is only being read on the first page of products shown. I know this because in my template I force my themes full width layout but the 404 that is returned to me is the default theme layout. Has anyone had this kind of problem before.

Here is the code used in the taxonomy template file.

<?php

remove_action('genesis_loop', 'genesis_do_loop');
add_action('genesis_loop', 'custom_loop');

function custom_loop() {

	$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
	$id = $term->name;

	$args = (array(
		'post_type'    => array( 'ddc_products' ),
		'ddc_product_categories' => $id,
	));

	genesis_custom_loop( $args );

}

remove_action('genesis_entry_content', 'genesis_do_post_content');
add_action('genesis_entry_content', 'ddc_products_content', 1);

function ddc_products_content() { ?>

	<a href="<?php the_permalink() ?>"><?php the_post_thumbnail('thumbnail'); ?></a>

<?php }

remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );

add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

genesis();

Yes, this is using a genesis theme. But even when switching to the default 2014 the taxonomy page isn't working correctly

rikay on "Help needed: Adding YouTube parameters to oEmbed function"

$
0
0

Hi there,

I want to add these youtube parameters ?rel=0&?wmode=transparent&iv_load_policy=3&showinfo=0&vq=hd1080 to the youtube iframe that is created with the oembed function. For Example: pasting a youtube link (http://www.youtube.com/watch?v=-McFIAlP0Ow) inside a post will now only result in this:

<iframe width="100%" height="394" src="http://www.youtube.com/embed/-McFIAlP0Ow?feature=oembed" frameborder="0" allowfullscreen="" style="height: 420px;"></iframe>

I want the oembed function to automatically add the earlier mentioned parameters, so the iframe will look like this:

<iframe width="100%" height="394" src="http://www.youtube.com/embed/-McFIAlP0Ow?feature=oembed?rel=0&?wmode=transparent&iv_load_policy=3&showinfo=0&vq=hd1080" frameborder="0" allowfullscreen="" style="height: 420px;"></iframe>

I know i can add these parameters manually by adding them to the iframe html code provided by youtube. But i have a lot of bloggers and want to make it as simple as possible for them to create youtube posts. So rather then let them use the youtube iframe code i want them to just paste the youtube link inside the posts and let oembed do all the work for them.

I already know the oembed functions are located in wp-includes/class-oembed.php, but my lack of javascript and php skills stops me from randomly adding coding to this file.

I really hope someone can provide me with the right piece of php coding or javascript!

Thanks and Merry Christmas to all of you!

igid26 on "How to copy functions from the admin bar?"

$
0
0

I need to copy part the wp admin bar in my menu. In css code is marked wp-admin-bar-top-secondary. It is Comments, Update and Search. I do not know what code should I use to make me whole menu does not appear.
http://www.taraj.sk/menu.jpg

cookituppaleo on "Post content is gone"

$
0
0

Hello there, yesterday my website wouldn't come up; only a dialogue box asking for a username/password (I never set that up), then when I declined, I was taken to a 404 error page that said I didn't have the permission to access the site. So I contacted my host and they reapplied my hosting permissions.

It half-fixed the problem, but most of my posts show up as a title only; no content, pictures, comments, or anything, like this: http://cookituppaleo.com/cheesy-potato-casserole-dairy-free-aip-option/. This only happens on the posts that I have my recipes on. (It's a food blog.) I contacted my host again and they pretty much said they couldn't do anything. I have been contacted by several of my followers saying that they can't see the recipes. Anyone have any ideas as to what I can try next? I am not code savvy or anything like that; but I think this may the result of a hack.

Thanks in advance,
Heather


Saurabh Jain on "How to check who created a user"

$
0
0

Hi all,

In my WordPress site many users have rights to create other user.

Is it possible to check which user is created by whom?

say_hello on "creative hacks of amazon-plugins - anybody?"

$
0
0

run a site with amazon-plugins
almost all popular amazon plugins are installed to test them.

now i look for creative hacks of amazon-plugins - anybody knows one?

Aureola on "How do you translate ( __('string') or _e('string') ) strings inside a function?"

$
0
0

Hi,
Surely I have made some typical newbie syntax error but I have tried just about everything. I would like to send off the words 'Read More' to the PO Editor for translation later; these words reside in this function:
(functions.php)

The original function for Read More - this one works but can't be translated:

function excerpt_ellipse($text) {  // custom 'read more' link
   return str_replace('[&hellip;]', '<a href="'.get_permalink().'">... READ MORE »</a>', $text); }
add_filter('the_excerpt', 'excerpt_ellipse');

This would be the internationalized function for Read More:

function excerpt_ellipse($text) {  // custom 'read more' link
   return str_replace('[&hellip;]', '<a href="'.get_permalink().'">... <strong><?php _e('</strong>READ MORE »',<strong>'ctequestrian') ?></strong> </a>', $text); }
add_filter('the_excerpt', 'excerpt_ellipse');

I have tried with and without the beginning/trailing <?php/?>, both with __( and _e( but I just can't get it to work. I have read about gettext in the Codex (http://codex.wordpress.org/I18n_for_WordPress_Developers) and several other tutorials but obviously I couldn't make use of them in this particular situation. In all other cases (simple strings of text in headlines and paragraphs) this _e( have worked fine.

Maybe someone here can help..?

alexWP333 on "Assign a Class to the Input Text Field of a Custom Metabox"

$
0
0

On the past site that I've worked on I used the Text tab in the Edit Page screen to insert HTML elements, and to add classes and ids to these elements so that I could attach specific CSS styles in the theme's style.css file. For example, I would put the following into the Text tab of the Edit Page screen:

<p class="myCustomParagraph">Here is my sentence.</p>

... and then add this to the style.css file of my theme:

.myCustomParagraph {font-size:10px;}

The problem with this is that the client would often go to this Text tab to edit the sentence, and accidentally delete some of the HTML.

I'd like to have future clients be able to go to the Edit Page screen, and be presented with a custom metabox that would allow them to type the words "Here is my sentence" into the metabox's text field. This way they could type in whatever words they wanted without having to see (or accidentally delete) any of the <p> elements, or class names. But, behind the scenes, whatever they typed in would automatically be assigned to the myCustomParagraph class, and be given a font size of 10px.

I've already set up the custom metabox itself, along with the input field, but I don't know how to assign a class to the content that would be typed into the input field, so that when I viewed that Page in the browser I'd see the words showing up as 10px in size.

Your help would be greatly appreciated.

naveenkothamasu on "All blogs for a particular keyword"

$
0
0

Hello,

I like to know if there is any endpoint for search: en.search.wordpress.com.
I am interested in retrieving all the wordpress sites for a given particular word in a Java program.

Could you please let me know if there a way to do that (other than modifying the url for search to pass the keywords and parsing the content for links)?

Thank you. Appreciate any help in this regard.

Viewing all 8245 articles
Browse latest View live




Latest Images