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

roptech on "Adding post Custom Field to content.php"

0
0

Hey guys,

Is there a way, after adding a Custom Field to a post, to then put the content of that Custom Field in to content.php to show on the Category page?

I'd basically like to be able to make a Custom Field with:

Name: RoR
Value: /wp-includes/images/ror35.png

Then be able to display that Value inside an img tag within the category archive page, by adding it to content.php

An example, on this link below, next to "June 27th, 2014 by Rock On" I'd like to be able to put an image that's dragged in from the Custom Field for that post.

http://rockonpublishing.co.uk/unsigned-reviews/

I've had a good old look through Google but can't find what I need to do.

Any ideas? I'm using Twenty Thirteen theme.


mrskinney1977 on "a page that you are publishing is nothing but a phishing scam and spreading viru"

0
0

[removed from public forum]

this page is making victims of every person visiting their page. i have also reported the site to the american fbi internet crimes division. you should be investigating this site and removing it before you are paying to remove viruses from every person's computer this person is victimizing after they receive your email address and phone number..

i am NOT an idiot. i scanned the page and it's links first and foremost. and i would never give exact info to anyone

dgcov on "Firefox thinks I have Flash on my site"

0
0

Firefox is giving me an error message about having flash on my page.

I am using a file uploader to upload and resize jpeg images.

I cannot understand why it thinks that there is flash on the site.

Is this a known issue?

Aron Art on "How to remove "view more posts from this author" box at the bottom of my site??"

0
0

Hey,
At the bottom of my posts there is a author box, where it shows my name, picture, and a link with the text "View more posts from this author".
I really want to remove this, how do I do it?

I'm using the free version of the new Capture theme by Slocum Studio

I have had this problem a long time and have searched for multiple answered but nothing has worked, would really appreciate it if someone could help me out.

Here's a link to the part of my site where it shows up. It's on the posts page where I have uploaded my art that the box at the bottom appears.
http://aronart.flynn.dk/?p=40

cosmicweb on "Redirect to site after plugin download!"

0
0

I have a plugin (Here) and I want it to redirect a user to my site after download is it possible?

Thanks!

cosmicweb on "Redirect to site after plugin download!"

0
0

I have a plugin (Here) and I want it to redirect a user to my site after download is it possible?

Thanks!

Menno1987 on "Custom user id starting at 10000 (10.000)"

0
0

I'm trying to change the default user ID count to start at 10.000 instead of 1. I've already been looking online for a few hours now, but i can't seem to find a solid answer to my question.
I have also tried changing the user ID from the first two accounts manually in phpmyadmin, but the next account that's created got a ID of 101 ...

I need the first user account ID to be 10.000, and count onwards from that number.

Any help on the matter would be much appreciated.

P.s. I.m a media developer student, so i know my way around code a bit :)

Tche111 on "Add 1 meta to comments // Show comments by that meta"

0
0

Hi everybody,
On our website (allwewish.org), we are gathering wishes and solutions; Since 2009, I set the solutions that I receive by comments or emails or that I find on the web in the post (1post = 1wish) they relate to.
Today I am analysing the possibility of using the comments tool as a direct solution feed. I have already managed to add a title to the comment and to show that title in wp_comment_list but to go further in the integration I would need your advise and help:

1. To add a new meta that would look like a sort of category for the solutions proposed (example: lack of money, lack of time, lack of health or in any case)
This doesnt look to difficult to me as I think I could basically apply the same solution than the one I use to give a title to the comments.
I would just need to settle the 4 categories allowed as in a droplist as explained in the following tutorial:
http://www.bobz.co/dynamically-populate-select-fields-choice-in-advanced-custom-fields/

2. To show the new comments below the post according to their "category"
Either with each category shown as a tab on which the reader should click to see the relevant solutions
Or with all the comments shown in a list, classified per "category" with each category shown as the title of its group...

Have you ever done something similar? Would you happen to have a solution or a tutorial to manage the 2nd issue?
(I have looked on the web a lot without success but maybe using wrong keywords)

Many thanks in advance for your help!
Wishing you a nice day


sqzr on "API Command to Create/Register WP Tables/Lists"

0
0

Hello

I am developing my own plugin, what API commands can I use to create Lists/Tables? Are there any API commands to do this?

When I refer to Lists/Tables I mean the standard WordPress lists that many plugins use:
Examples of Lists/Tables
<img src="http://i.imgur.com/cjgctm2.jpg"/>

dacidcm86 on "Backend as to select combo"

0
0

Hello,

I wondered how I could do one thing in wp .

I need to show X combo select a page , depending on the option chosen in the display select one thing or another in the next select something else ... etc . That 's no problem.

The problem is that these select must be able to be managed from the backend of wp . So I wonder if there is some sort of plugin or something to help me this, or have I perform backend programming (to put the data in the table and select appropriate ), with the connection to the databases so the select be painted etc.

Thanks and regards.

Joschua Boehm on "Pulling WP Data from many sites to one data warehouse"

0
0

Hi All,
I do data warehousing and Business Intelligence as my profession.

I have started some WP stores and blogs etc in preference to dot net nuke. I still have quite a few DNN sites.

What I am interested in is this. I want to build a cloud service for data warehousing WP data from client sites. What this will allow our client to do is as follows:

1. Connect 1 or more wordpress sites to our service.

2. Extract, clean, integrate, and store all their wordpress from separate sites into one data warehouse. They will have their own database or share a database as options.

3. Add additional data to the data warehouse to be integrated to their wordpress data.

4. Sophisticated BI will be placed over the top so allow greater insight in to the performance of their business or businesses.

This will be particularly aimed at people who are selling products or services.

We already have very sophisticated BI data models that have been used in many companies all around the world. We are looking at bringing such models and such capabilities to "the masses" who use such things as woo commerce etc.

The only bit we really do not have a handle on is connecting to the wordpress databases and pulling the data out and transforming it to a tablular format that makes sense inside a data warehouse.

We have a C++ ETL engine and we have an ODBC class that connects to mysql. It does have the 32K chunk limit for ODBC for data which will not be a problem in most cases. Just very long posts.

But taking a look inside the mysql databases for wordpress the data is stored in posts that are interpreted by WP at the time of execution. The posts have post types and then the data must be interpreted by post type.

I was wondering if anyone has undertaken a project to move the wordpress data to another database and unpacking it by post type on the way.

Failing that I was wondering if anyone has any pointers or tips for us on the best way to approach getting data out of the WP mysql database and across to a mysql staging area including unpacking the variable data in the various post types along the way.

I am thinking I am not the first person to think it would be a good idea to extract all the data from WP and transform it so that it is queryable in a database.

Thank you in advance for any assistance you may be able to afford us.

Best Regards

Joschua

cgjcr on "Disable Wordpress authentication"

0
0

I've written a plugin to use an alternative authentication method (checks username and password against an external database) but people are still able to log in using their Wordpress password. I have tried using the following in both the plugin file, and in my theme's functions.php, but to no avail:

remove_action('authenticate', 'wp_authenticate_username_password', 20);

remove_filter('authenticate', 'wp_authenticate_username_password', 20);

Does anyone know a reliable way to disable Wordpress passwords?

filesubmit on "How to add multiple 'orderby' in functions.php"

0
0

Hello, i have custom fields, but in the following function all posts that don't have custom field 'podredba', are not displayed.

function category_archive_sort_posts($query) {
  if ( !is_admin() && $query->is_main_query() ) {
    if ( is_category( 1192 ) ) {
      $query->set( 'orderby', 'meta_value_num' );
      $query->set( 'meta_key', 'podredba' );
      $query->set( 'order', 'ASC' );
    }
  }
}

add_action('pre_get_posts','category_archive_sort_posts');

How can i merge the following two codes in one?

$query->set( 'orderby', 'meta_value_num' );
$query->set( 'meta_key', 'podredba' );
$query->set( 'order', 'ASC' );

with

$query->set( 'orderby', 'date' );
$query->set( 'order', 'ASC' );

[ No bumping please. ]

SomebodyInterested on "XML-RPC custom post type with taxonomy"

0
0

Hello,
I am creating wp.newPost() when i am creating post without taxonomy it works well. Only problem is when i creating with 'terms'. Getting response Sorry, one of the given taxonomies is not supported by the post type. When i try get taxamony of object #$post i get right one. Format is this http://pastebin.com/DacV7AZv. When i try wp.getPost() taxamony is in format like this so. I am following wp codex http://codex.wordpress.org/XML-RPC_WordPress_API/Posts#wp.newPost but cant it get done somehow some tips? or something what can happening? Is there some example how to make format of post or something what can help me? or somekind of help?

bethplummer on "code issue with slider and making an image responsive"

0
0

My first slide on this page, Promotion slide wasn't responsive...I added max-width: 100%; height: auto

to the css. It works But now it adds too much space below the image when viewing on mobile device. It also makes the title disappear. How do I make this image responsive, but get rid of the space below?

http://new.921thefrog.com/index.php/test-promo-slider/


exortpress on "Why do_shortcode is not executing the shortcode in data-* html attributes?"

0
0

I've already asked this question on wordpress.stackexchange.com and so far I got only one user to reply me and he said that he was unable to reproduce the error.

My request to this sub-forum community is to test the following code, which can be a bug in WordPress. I can reproduce the error on my localhost machine as well as on the remote development server. I'm simply copy pasting the question to avoid wasting time.

This is on Vanilla installation. I've made a shortcode:-

/**
 * Creates a shortcode for shortcode_use_here
 * @author Omar Tariq <XXXXXX@gmail.com>
 */
function callback_banana_abc( $args ){
    /* Don't echo! Always return */

    return 'yay!';
}
add_shortcode( 'banana_abc', 'callback_banana_abc' );

And I've made a template that looks like this:-

<?php
/*
 * Template Name: Test Template
 * Description: Hello world.
 */

$str = '<a herf="#" title="[banana_abc]" data-abc="[banana_abc]">[banana_abc]</a>';
echo do_shortcode($str);

The output is:-

<a herf="#" title="yay!" data-abc="[banana_abc]">yay!</a>

This is only for data-* attributes. It works fine when used in title attribute.

The actual shortcode is much more complex. I've made it small and to the point to avoid wasting time.

Please let me know if you can reproduce the error.

Tche111 on "How to change a custom field into a dropdown list?"

0
0

OK, I finally made it following this crystal clear tut': http://ivetetecedor.com/how-to-use-a-drop-down-menu-for-wordpress-custom-fields

Consequently, my functions.php became:

add_action( 'comment_form_logged_in_after', 'additional_fields' ); add_action( 'comment_form_after_fields', 'additional_fields' );

function additional_fields () { echo ''. '' . __( 'Titre (Je peux...)' ) . ''. '
';

echo 'Cette solution est particulièrement utile... Dans tous les cas Sans argent Sans le temps Sans la santé ';

}

add_action( 'comment_post', 'save_comment_meta_data' ); function save_comment_meta_data( $comment_id ) { if ( ( isset( $_POST['title'] ) ) && ( $_POST['title'] != '') ) $title = wp_filter_nohtml_kses($_POST['title']); add_comment_meta( $comment_id, 'title', $title ); if ( ( isset( $_POST['category'] ) ) && ( $_POST['category'] != '') ) $category = wp_filter_nohtml_kses($_POST['category']); add_comment_meta( $comment_id, 'category', $category );

}

I hope it'll help

aidielen on "Automatically remove repeated words in slug."

0
0

Hi everyone, i am looking for a way to remove repeated words in wordpress slug.

let say my domain is 'example.com'

and i have a category named 'WordPress How To'

i have configured the permalinks to be 'example.com/wordpress-how-to/'

then i want to create a post with the title "How To Create A Child Theme In WordPress"

then the permalinks will automatically generate this..

'example.com/wordpress-how-to/how-to-create-a-child-theme-in-wordpress/'

since the words "wordpress,how,to" are repeated, how can i automatically remove those words when i insert the title.

i want the permalinks will autogenerate this...

'example.com/wordpress-how-to/create-a-child-theme-in/'

it's actually easy to just edit the permalinks by clicking the edit button.

but is there any functions.php code to make it autogenerated?

demcmanamy3 on "Link to pot site appears next to my website title and I need to remove it"

0
0

I need help removing a link to a site that appears in my header next to the title.

Auburnixi on "List Categories, and Post Names under active parent Category"

0
0

I'm working on a custom single.php template in an effort to display a custom sidebar setup. In the sidebar, I wanted to display a specific list of child categories (which I have achieved), but I'd also like to list all of the post names under the 'active' category (the parent category for the post we are looking at).

Kind of like this:
Category 1
Category 2
Category 3 (active)
- Post 1
- Post 2 (currently viewing)
- Post 3
Category 4
Category 5

So far, I have captured the current category id, and displayed all categories I wanted. I am not sure where to go from here, or if there's a better method.

$grab_category = get_the_category();
$category_id = $grab_category[0]->cat_ID;

 $categories = wp_list_categories('echo=0&title_li=0&child_of=16');
 $categories = preg_replace('/title=\"(.*?)\"/','',$categories);
echo $categories;
Viewing all 8245 articles
Browse latest View live




Latest Images