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

miriammp on "Pods Single Template"

0
0

Hello,
I'm trying to create a single-portfolio.php template for the Pods Custom Post Type "Portfolio" which I created. Would anybody know how to convert the following code into php so it works with wordpress...?

` <div id="port-individual">
<div id="col_one">
<img src="{@image_one}"/>
<img src="{@image_two}"/>
<img src="{@image_three}"/>
</div><!--#col_one-->

<div id="col_two">
<h3>{@post_title}</h3>
<p> Client: {@client}</p>
<p> Category: {@project_category}</p>
<p> Website: <a href="{@website}">{@website}</a></p>
<p>Challenge+Solution: {@post_content}</p>
</div><!--#col_two-->

</div><!--#port-individual-->`

"Post_title", and "post_content" are regular wordpress fields. "project_category", and "clients" are Pod taxonomies. "website", "image_one", "image_two", "image_three" are the pod fields of pod custom post type called "Portfolio.

I'd really appreciate ANY lead or help I can get to create a template for the custom post type.
(Genesis sample child theme being used.).

Many thanks!


mdsmash on "Display only certain attachments in media modal."

0
0

Hi everyone,

I hope this hasn't been asked a million times before and i've just not used to correct search terms to find it however...

I am using a custom button and javascript to open the media library modal and that works fine.

What however I want to happen then is to be able to specify which attachments I want to see. I've had a bit of a Google around and I've not found anyone who had an answer for this yet (Maybe it's just what I'm googling). It is possible for me (when there are not too many items), to filter just using strict jquery and removing the elements, however on an the media library loading more, this breaks.

Is this even possible? or are you limited to just filtering the post or the author? If not is there a specific event for the ajax paginating the media library I can hook onto to filter these via jquery?

Cheers everyone.

The MediaMan on "Wordfence hack attempts"

0
0

I keep receiving a message that:

"A user with IP address 212.227.28.58 has been locked out from the signing in or using the password recovery form for the following reason: Exceeded the maximum number of login failures which is: 20. The last username they tried to sign in with was: 'admin'"

How do I stop this message?!! I'm getting about 1 every 5 minutes?!
THanks

webbdljj on "Change CPT Archive Page With Plugin"

0
0

I am creating a plugin that reads information from an external database and creates posts in a custom post type with custom taxonomies from the info. I have it working good but now I would like to have some control over how the content is displayed on whatever theme the user installs it with.

For instance:

1. I would like to add a tag cloud with the taxonomies to the top of the custom post type page and the the pages that the taxonomies show on.

2. I would like to control the title of the archive page.

Is there a way to do this without editing the theme? I have successfully changed the page template to one in my theme directory based on the page title using template_include filter but I believe that will mess up on some themes. Or is there a way to make it generic enough that it will use the current themes formatting?

Thanks for you help.

LanceSurgeGG on "Leveraging browser caching / Slow first load"

0
0

Hello forum

I'm experiencing very slow load times on my websites homepage:

http://www.glassgarden.co.za - Hosted by Godaddy cPanel

I've tried a few tricks this week including Hearbeat API controller plugin, which I have recently disabled, as well as WP Super Cache, which I also didn't find helped and have disabled for the time being.

Pingdom recommends that I need to "leverage browser caching" which I've done through adding that code into the htaccess file, but still this does not seem to make much of a difference, (I assume this wont affect the first load of the site anyway, which is where my concern lies)

I'm recording up to 12 seconds at worst to load homepage slider images..

This is unacceptable,

Any ideas on what I could try to improve this?

I'm using WooCommerce theme called Peddlar, with the built in slider, it used to be a little slow, but now with reduced images sizes to around 300kb, (3 of them) it is still much too slow.

Please help!

Thanks,

Lance

rmoledo on "Edit wp_logout_url() to match new login location"

0
0

Hello,

I have moved the wp-login.php to a new folder /secret/index.php in order to hide the default login URL. The login, register and lost password forms are working just fine but I have a problem with the logout url.
How can I edit wp_logout_url() so that it outputs example.com/secret/?loggedout=true instead of example.com/wp-login.php?loggedout=true ?

Thanks in advance.

nwp_developer on "Dynamic Class Sidebar"

0
0

I'm creating a wp_customize section to change the layout of my sidebar by changing the class of my sidebar in register_sidebar().

The variable passes correctly and will change the class. However, since register_sidebar runs at widgets_init I need to save the setting and refresh the theme customizer to see the changes.

How can I get the setting change to refresh and update automatically like the other settings?

I'm passing get_theme_mod('custom_setting') as a class inside the 'before_widget' => <div class="get_theme_mod('custom_setting')">.

nwp_developer on "Theme Customizer Multiple Controls"

0
0

How do you add multiple controls in the Theme Customizer? Let's say you want to adding padding and right. I've tried creating 2 settings and passing 2 arrays to add_control without success.


nwp_developer on "Tutorial Drag and Drop Page Editing"

0
0

Does anyone have links to tutorials on creating drag and drop interfaces to either enhance or replace the tinymce like visual composer?

nwp_developer on "Theme Customizer Menu Item Order"

0
0

How are the menu items inside the Theme Customizer ordered? There's a priority setting in add_section for the menu categories. However, I'm not clear on how the individual items are ordered.

I assumed the order is by the add_control order and maybe the add_setting, but that doesn't seem to be the case. Well...that was the logic when I had 4 or less menu items and now with 8 the order is a little jumbled up.

nwp_developer on "Wp_customize_image_control Use Add Media"

0
0

Is there a way to use the Add Media in the wp_customize_image_control for Theme Customizations? The default image_control is very bare bones and only allows uploading of an image. There's no selection from the library or editing options.

Persianfun on "Didas My sit - Ways to prevent attacks on the site"

0
0

You have to put a password on the wp-admin folder
A few days ago my server because Dan was severe attacks
http://persianfun.org

Aquaaa on "Plupload in WordPress Frontend"

sivakanmani on "how to çreate arcĥive for custom post type"

0
0

how to çreate arcĥive for custom post type?

berean46 on "Updating form data as a result of tabbing out of an email field"

0
0

I have a simple form in wordpress that uses an email field to determine if someone exists in infusionsoft. If so i need to be able to get the notes information tied to that contact and update the form with the existing notes from infusionsoft and allow them to add new notes to append and then write the new set of notes back to infusionsoft...my problem is that i am uncertain how to trigger this as a result of tabbing out of the email field. I know how to program php and use the api but triggering the event with the right 'hook' is escaping me....anyone have any insight on this? Any help is so greatly appreciated!

John Borelli
League of Lions, LLC


ehodge on "Duplicate a menu item in admin menu"

0
0

I would like to know if it's possible to duplicate a menu item in the Wordpress admin menu.

I'm using a theme for artists and it only has one portfolio. I have a client that runs a tattoo shop and art studio and they really like this theme. It's called WP-ArtShow.

I've tried their support but they answered with 'Sorry, this theme only has one portfolio'.

I've been through many pages in here looking for any info on trying to duplicate the menu item (knowing it will have to be named a little different for each new 'portfolio' that is added).

Can anyone tell me how to get this in place?

I have built sites since 1998 and do work with code as well as Wordpress so I have a 'little' experience.

Thanks for any help,

Ernie Hodge

AussiOrganics on "I need help someone crashed my site"

0
0

[Decapped topic - please do not yell here]

Hi! I am hoping that someone with wordpress might be able to help me. A while back, I hired a company called Doublet Media to build our website, content, and social media sites for us. Our website through wordpress was absolutely beautiful. After extorting thousands of dollars and blackmailing us, they finally crashed our website. I went to check orders one day and there was just nothing there. Is there any way that wordpress keeps any history that would enable me to get this site back? Them doing this almost destroyed our business. We were able to get a basic site back up, but we would love to have our original site back. Praying for a miracle!

spejle on "Twitter in WP"

0
0

Hi, I need to load a page of twittr to WP to WP Twitty appear in the blog, and when adding a new Twitty refresh the page? It already had such a ready-made solution or plugin? thanks S.

Travis on "Proper way to add_filter with shortcode"

0
0

Greetings,

My plugin RSS Retriever, located here: https://wordpress.org/plugins/wp-rss-retriever/ is a simple shortcode plugin which fetchs and displays an RSS feed.

I've had a few requests to add support for using the shortcode inside a text widget. The following filter will do this:

add_filter( 'widget_text', 'do_shortcode' );

However, I'm not sure what would be the proper, or WordPress way, of doing this. Should I just add another attribute to the shortcode, something like "widget=true" or is there a more recommended way of doing this? I don't want to clutter the shortcode with too many attributes...

Thanks for any help!
- Travis

clouder on "Trying to learn Jquery for Wordpress but none of the tutorials work with WP"

0
0

Ive looked at youtube videos and the code would work in js.fiddle but when I put it into my wordpress post and pages to troubleshoot, they just don't work.

Some tutorials say to call the jquery script from http://code.jquery.com/jquery-2.1.3.min.js, some say you can just paste it unto the page, some say to enqueque it.

I'm not quite sure which tutorial to follow when it comes to learning to use javascript/jquery with wordpress.

Viewing all 8245 articles
Browse latest View live




Latest Images