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

mxfarsa on "Replace GD resize function with Imagemagick."

$
0
0

Hi everyone,

This issue may not be easy to fix, I do not know but here it is.

I am selling photos online to different newspapers, they buy and download one image or more with a size (Large, medium or small) when selected the site resizes the image and make it available for download - so far everything is working perfectly and as it should. But and this is a big but, when it resizes the image all exif and metadata is lost - som instead of a image with correct colorprofile, meta data, and resoultion, the customer gets a image in 96ppi (not 300ppi) that they bought....

The shopping solution I use are doing the resize and using wordpress GD library and when the code "imagecopyresampled" is used that is when metadata and exif gets lost.

So to test out if using imagemagick does a better job of keeping the data i now need to change the code to use imagemagick instead of GD library.

I am not a programmer so here is the original code of the resize function:

public function create_download_size( $size, $location=null ){

        $image_p = imagecreatetruecolor( $size['width'], $size['height'] );
        $image = imagecreatefromjpeg( $location );

        list( $current_image['width'], $current_image['height'] ) = getimagesize( $location );
        imagecopyresampled($image_p, $image, 0, 0, 0, 0, $size['width'], $size['height'], $current_image['width'], $current_image['height']);

        $destination_file = $this->tmp_dir . basename( $location );

        if ( ! file_exists( $destination_file ) ){
            wp_mkdir_p( dirname( $destination_file ) );
        }

[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

Now one thing the function must leave the original image alone and create a new size temporarily for the download.

How do I switch this function to use imagemagick instead of GD for the same operation?


LulaViolet on "m^2 translated as « square meter » in function"

$
0
0

I got a little challenge here. I'm working on a website for a client, who has no idea about html/php. In some posts of the website will be some data with square meters. Because the client will fill up the posts, its a bit tricky to make wordpress show square meters as square meters and not as for ex. m^2 without using code (m<sup>2</sup>).
I tried several plugins like wp-Typography and also wp-LaTeX, but the first plugin doens't work and the second one works but not in the way I would like to.
Because I'm better in reading php than actually writing it by my self, I was wondering, if it would be possible to create a function in the function.php who automaticly changes the « m^2 » into the visual of m<sup>2</sup>.
Any ideas? Would be very helpfull.

Leaniebiz on "Content dripping with shortcodes"

$
0
0

I am looking for php code or a plugin were I can execute content dripping by shortcodes.

I want to do courses after signup were you get every new day more information on the same page. Most plugins offer content dripping by page (with a agenda and making the page visible after x days). I want to make the page visible from day one and give more information every day with shorttags like:

[day1]
content..
[/day1]
[day 2]
content..
[/day2]

The cool thing about this feature is: the new day can always be in the top so if the course is for mobile users they dont have to scroll down a month or look for day 30 after a month.

It is important the contentdripping is connected to signup date of a user. I hope someone can give me some good tips about this issue.

Ericka125 on "JS Filter Categories and Current Tags"

$
0
0

I'm fairly new to javascript and I am having trouble figuring out the basics of how to change this code created by a former co-worker to fit what I need.

So, currently, the filter options pull the list of wordpress posts (designated as business listngs for my client's website) and allows you to filter by the category or tag within that listing/page. What I want to do is one of two things:

  1. Add a class name to the tag that fits the tag slug so I can add the appropriate image
  2. Reformat the code so it lists all tags within specific categories, rather than just the posts listed on that page. I think this will be more beneficial to users.

So, if you need a visual, my test website is located at http://ruskcountywi.com/trees/lodging/hotels-motels-resorts/ and http://ruskcountywi.com/trees/lodging/campgrounds/. You will see on the campgrounds page that the icons aren't matching up with the designated tag, this is what I'm trying to correct.

If you can also help me with the brief visibility of the error code on page load, that would be awesome.

Here's the lodgingFilter.js code:

[ 305 lines of code moderated, please provide link to pastebin.com link instead. ]

jmuncy on "WordPress Slugless Author Pages Cause Static Page Not Found 404 Error"

$
0
0

It appears the use of slug-less author page permalinks is not possible without causing 404 errors on static pages?

Normal rewrite rules for author pages:

[author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?author_name=$matches[1]&feed=$matches[2]
[author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?author_name=$matches[1]&feed=$matches[2]
[author/([^/]+)/page/?([0-9]{1,})/?$] => index.php?author_name=$matches[1]&paged=$matches[2]
[author/([^/]+)/?$] => index.php?author_name=$matches[1]

Rewrite rules without the “/author” slug:

[([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?author_name=$matches[1]&feed=$matches[2]
[([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?author_name=$matches[1]&feed=$matches[2]
[([^/]+)/page/?([0-9]{1,})/?$] => index.php?author_name=$matches[1]&paged=$matches[2]
[([^/]+)/?$] => index.php?author_name=$matches[1]

The 4th line above conflicts with the rewrite rule for pages which appears last in the list of rewrite rules:

[(.?.+?)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]

This means that any requests for pages are handled as if it was a request for an author page. A static /about page would return 404 because the system could not find an author slug of “about”.

Rewrite rules used on a wordpress blog with a standard /yerar/month/postname/ permalink structure:

[category/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
[category/(.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
[category/(.+?)/page/?([0-9]{1,})/?$] => index.php?category_name=$matches[1]&paged=$matches[2]
[category/(.+?)/?$] => index.php?category_name=$matches[1]
[tag/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?tag=$matches[1]&feed=$matches[2]
[tag/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?tag=$matches[1]&feed=$matches[2]
[tag/([^/]+)/page/?([0-9]{1,})/?$] => index.php?tag=$matches[1]&paged=$matches[2]
[tag/([^/]+)/?$] => index.php?tag=$matches[1]
[type/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_format=$matches[1]&feed=$matches[2]
[type/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_format=$matches[1]&feed=$matches[2]
[type/([^/]+)/page/?([0-9]{1,})/?$] => index.php?post_format=$matches[1]&paged=$matches[2]
[type/([^/]+)/?$] => index.php?post_format=$matches[1]
[robots\.txt$] => index.php?robots=1
[.*wp-(atom|rdf|rss|rss2|feed|commentsrss2)\.php$] => index.php?feed=old
[.*wp-app\.php(/.*)?$] => index.php?error=403
[.*wp-signup.php$] => index.php?signup=true
[.*wp-activate.php$] => index.php?activate=true
[.*wp-register.php$] => index.php?register=true
[feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]
[(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]
[page/?([0-9]{1,})/?$] => index.php?&paged=$matches[1]
[comments/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]&withcomments=1
[comments/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]&withcomments=1
[search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?s=$matches[1]&feed=$matches[2]
[search/(.+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?s=$matches[1]&feed=$matches[2]
[search/(.+)/page/?([0-9]{1,})/?$] => index.php?s=$matches[1]&paged=$matches[2]
[search/(.+)/?$] => index.php?s=$matches[1]
[author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?author_name=$matches[1]&feed=$matches[2]
[author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?author_name=$matches[1]&feed=$matches[2]
[author/([^/]+)/page/?([0-9]{1,})/?$] => index.php?author_name=$matches[1]&paged=$matches[2]
[author/([^/]+)/?$] => index.php?author_name=$matches[1]
[([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]
[([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]
[([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&paged=$matches[4]
[([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]
[([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]
[([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]
[([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&paged=$matches[3]
[([0-9]{4})/([0-9]{1,2})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]
[([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&feed=$matches[2]
[([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&feed=$matches[2]
[([0-9]{4})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&paged=$matches[2]
[([0-9]{4})/?$] => index.php?year=$matches[1]
[[0-9]{4}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[[0-9]{4}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[[0-9]{4}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[[0-9]{4}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[[0-9]{4}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[([0-9]{4})/([0-9]{1,2})/([^/]+)/trackback/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&name=$matches[3]&tb=1
[([0-9]{4})/([0-9]{1,2})/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&name=$matches[3]&feed=$matches[4]
[([0-9]{4})/([0-9]{1,2})/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&name=$matches[3]&feed=$matches[4]
[([0-9]{4})/([0-9]{1,2})/([^/]+)/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&name=$matches[3]&paged=$matches[4]
[([0-9]{4})/([0-9]{1,2})/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&name=$matches[3]&cpage=$matches[4]
[([0-9]{4})/([0-9]{1,2})/([^/]+)(/[0-9]+)?/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&name=$matches[3]&page=$matches[4]
[[0-9]{4}/[0-9]{1,2}/[^/]+/([^/]+)/?$] => index.php?attachment=$matches[1]
[[0-9]{4}/[0-9]{1,2}/[^/]+/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[[0-9]{4}/[0-9]{1,2}/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[[0-9]{4}/[0-9]{1,2}/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[[0-9]{4}/[0-9]{1,2}/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[([0-9]{4})/([0-9]{1,2})/comment-page-([0-9]{1,})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&cpage=$matches[3]
[([0-9]{4})/comment-page-([0-9]{1,})/?$] => index.php?year=$matches[1]&cpage=$matches[2]
[.?.+?/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[.?.+?/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[.?.+?/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[.?.+?/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[.?.+?/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(.?.+?)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(.?.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(.?.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(.?.+?)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(.?.+?)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(.?.+?)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]

Does anyone have a solution to this problem in a multi-site instance?

Full article: http://stanis.net/2013/11/wordpress-slugless-author-pages-cause-static-page-not-found-404-error/

gretakrasteva on "Strange web address is showing on top of my website"

$
0
0

When view the website the 'View Page Source' of my home page '3xgglobalsolutions.com' the following code appears:
</style>http://www.swc-cfc.gc.ca/index-eng.html<meta property="og:title" content="Business Design & Performance Improvement / Personal Financial Solutions / Personal Document Services / Notary Public" />

The part "/www.swc-cfc.gc.ca/index-eng.html" is not entered by me. I have no idea how it got there.

This put http://www.swc-cfc.gc.ca/index-eng. html as text only (not an active link) right on top of my logo, in the background.

I cannot see the code in the "text" version of the home page in WP. It is in the title.

I have no way of removing it.

Please help. Running out of options.

Nothing was added or changed between the site being good and this happening.

Thanks

pkdsgn on "How showing description of parrent menu on menu-list, Image in menu"

$
0
0

Hello,
I'm trying show the description of parent menu in submenu.

I have something like that

<nav>
<ul nav-menu>
<li><a>item 1</a></li>
<li><a>item 2</a>
   <div class="dropdown">
   <span> $DESCRITPION_OF_ITEM_2</span>
   <ul sub-menu>
     <li>..</li>
     <li>..</li>
   <ul>
   </div>
</ul>
</nav>

I need showing this variable "$DESCRITPION_OF_ITEM_2" which showing the description from menu editor in wordpress, is it possible ?

And second question, do you know good plugins or something for adding image to menu ?

Thank;s for response

Demetrius Pop on "update_option based on selected option in admin panel"

$
0
0

I am building a 'test' wordpress plugin which should have 3 options from a select form in the admin page. When an option is selected, it should invoke a function.

Using update_option, I have this:

The code:

<select name="pytime">
        <option value="1">time</option>
        <option value="2">date</option>
        <option value="3">date-time</option>
    </select>

<?php
$pytime = $_POST['pytime'];
if($pytime == 1) {
    function add_copyright() {
        $copyright_message = "Copyright ". date(Y)  . ", All Rights Reserved";
        echo '<div id="plugin-copyright">' . $copyright_message . '</div>';
    }
    add_action("wp_footer",add_copyright);
}

if($pytime == 2) {
    function func2() {
       // func2 code
    }
    add_action("wp_footer",func2);
}

if($pytime == 3) {
    function func3() {
       // func3 code
    }
    add_action("wp_footer",func3);
}

$option_name = 'time' ;
$new_value = $_POST['pytime'];

if ( get_option( $option_name ) !== false ) {

    // The option already exists, so we just update it.
    update_option( $option_name, $new_value );

} else {

    // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
    $deprecated = null;
    $autoload = 'no';
    add_option( $option_name, $new_value, $deprecated, $autoload );
}

What should I set $option_name and $new_value to in order to select the appropreiate function?


hotinthenews on "How To Pop Up Video Over An Image?"

$
0
0

Hi;
I would like to have a video popup when users click on a image. I got part of it but am stuck with the popup knowing that "onclick" and "onmouseover" don't work with PHP, unless I resort to using AJAX, which I am not familiar with.

Here's what I got:
I write an article and embed entire video code <iframe ......></iframe> into a custom field I call 'Video'. I publish the article.

At a separate page I created, I call the code stored in the custom field "Video" like so:

$videos = get_post_meta( get_the_ID(), 'Video', true );

$videos now contains the entire embed video code. Perfect.

Then I display the featured image of the post :

<img src="<?php echo $img; ?>" width="170" height="100" border="2">

(I stored thumb_nail() into $img.)

So far so good.

When I load the page, the images all show up but I can't for the life of me get the corresponding video to open up on the same page when a viewer clicks or hoovers over the image.

Any suggestions?

Thanks

Lode

jayhawkerd on "Add change color of certain section of page to customize.php"

$
0
0

I am working with trying to get one of my inner divs to be able to change colors from the customizer page. I have tried the styles plugin and it changes an inner part but there is another section in the page I want the user to be able to change the color. Any ideas on how I would do that? It's a div that I want the colors on. Any help on this would be greatly appreciated. Thanks

nachoroberto98 on "How to make all Pages display on one page while retaining style and menu"

$
0
0

Someone posted this code, which when I paste it in the Page Template (page.php) works to make all of the pages display on one page (the parent page). Depending where in the template I paste it, it has a different influence (it seems to interfere with css). I am not sure where to paste it so all of the pages are presented in their original style (how they appear when I leave them as separate pages which I would load from the drop down menu). I'm currently using the Twenty Thirteen page template :

<?php $pages = get_pages();
foreach ($pages as $page_data) {
$content = apply_filters('the_content', $page_data->post_content);
$title = $page_data->post_title;
$slug = $page_data->post_name;
echo "<div class='$slug'>";
echo "<h2>$title</h2>";
echo $content;
echo "</div>";
}
?>

WarMC on "Unique file increase problem website - new sort of virus?"

$
0
0

Dear WP-specialists,

On a certain moment my website was pulled off the air by the host Justhost because the files on my website were exceeding far over 200.000. Except, my files are just 3.000 on my computer! Only when I upload them on the FTP there are suddenly about 210.000!

Anybody any thoughts?

eazy4me on "How to get infield labels for comment form"

$
0
0

Hi,

How do i get infield labels for the standard WP comment form? I want to get the labels inside the input field but don't have a clue how. Searched for almost 3 hours and can't find a good solution. I found different sites with solutions how to do it but NOT for wordpress. (i'm not a top of the top developer). Can someone please help me?

Thanks in advance!

Paul Skip Brown on "RSS excerpt issue with Flipboard"

$
0
0

Bit of an odd one. I create hand crafted excerpts and formatting isn't an issue. I created a new RSS template just for a Flipboard feed and Flipboard seems to create the excerpt dynamically from the content depending on space. My problem is it formats it as a normal excerpt so strips paragraphs. As a result there are no line breaks / sections just a big chunk of text - if you look at https://flipboard.com/section/skipology-bbClz2 and flick to the first page you'll see what I mean. It also means that there isn't a gap between the full stop at the end of one paragraph and the first word of another.

Is there any way to reintroduce <p> and </p> tags for the excerpt just for the custom feed which has it's own template and URL. I could add code either within the template which would target the feed directly or via functions.php which would need to target the feed within the code somehow.

As there is no formatting for the excerpt it would be great if I could insert <p> </p> between each paragraph to create a line of space if possible but just for the excerpt.

The RSS feed is for a specific purpose so I can get quite bespoke with it.

grazias on "Site Hacked"

$
0
0

Hi All,

I'm a newbie & had created my site just 2 months back...& it was only yesterday I recvd. a message from google webmasters telling me that my site's hacked.I don't know any coding & am at a loss about what to do next !!

Please help


netcom on "HTML work around for SWF security issue"

$
0
0

HI All,
I wanted to get some help on this HTML code. WP 3.6 decided to not allow SWF. I thought to go a different approach to this. I do have a couple questions about the code itself. I created a flash file and and thought to just park it outside of WP yet on the same server and to then instruct via HTMl where the file is parked "External from WP site" My question is the paths for my SWF file and my SWZ file.
I want to park those files in a folder called say "flashfolder"
my path would be "123456F2.netsolhost.com/flashfolder/holiday advertising.swf"

Yet when creating my flash file in Adobe it exports my HTML file referencing the "samesite" I am unclear on which paths need to reflect the specific path as in exampled in Bold above?

Here is the pertinent code to place in my WP page yet if someone would Bold the areas that need a specific path, it would be appreciated.
Also if you would where I could place an "ALT" tag to use where someone's browser may have scripts off and I would like a place holder of a gif or png...Thanks for BOLDING the areas in question and pointing anything out in advance
NC

<div id="flashContent">

            <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="360" id="holiday advertising" align="middle">

                <param name="movie" value="holiday advertising.swf" /> <strong><-- is this OK like this or does it need a specific path?</strong>

                <param name="quality" value="high" />

                <param name="bgcolor" value="#ffffff" />

                <param name="play" value="true" />

                <param name="loop" value="true" />

                <param name="wmode" value="window" />

                <param name="scale" value="showall" />

                <param name="menu" value="true" />

                <param name="devicefont" value="false" />

                <param name="salign" value="" />

                <param name="allowScriptAccess" value="sameDomain" /> <strong><--- IS This the specific path? in "  "</strong>

                <!--[if !IE]>-->

                <object type="application/x-shockwave-flash" data="holiday advertising.swf" width="640" height="360"> <strong>Again here also? "  "</strong>

                    <param name="movie" value="holiday advertising.swf" />

                    <param name="quality" value="high" />

                    <param name="bgcolor" value="#ffffff" />

                    <param name="play" value="true" />

                    <param name="loop" value="true" />

                    <param name="wmode" value="window" />

                    <param name="scale" value="showall" />

                    <param name="menu" value="true" />

                    <param name="devicefont" value="false" />

                    <param name="salign" value="" />

                    <param name="allowScriptAccess" value="sameDomain" />      <strong><-- Is Value=" My specific path/folder/file</strong>

                <!--<![endif]-->

                    <a href="http://www.adobe.com/go/getflash">

                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.g if" alt="Get Adobe Flash player" />

                    </a>

                <!--[if !IE]>-->

                </object>

                <!--<![endif]-->

            </object>

        </div>

[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

sremy on "Cufon code: entry-title different for posts and pages"

$
0
0

Hi Guys,

I'm using a child theme of 2011 as the base for my site.

What I want to do is have one style for page entry-title.
and another style for post entry-title.

Near as I can tell they have the exact same class and id, so does anyone know how I can set them up with different classes to work differently in css?

Here's the current version of the site
http://keepower.com.au/

Marj Wyatt on "How to isolate posts in custom taxonomy?"

$
0
0

I'm wrapping up a custom theme for a client and I want to add filters to the archives for proper formatting of product data.

The custom post types are properly associating with their custom taxonomies, which are cateogories. The rewrite slug is product-type.

I'm using this in functions.php to filter the microformates and it is working for the conditions that I've listed

//Filter Microdata for Products
function vm_attributes_content( $attributes ) {
	//* Product microdata
	if ( is_singular( 'product' ) || is_post_type_archive( 'product' ) || is_home() ) {
		$attributes['itemscope'] = 'itemscope';
		$attributes['itemtype']  = 'http://schema.org/Product';
	}
	return $attributes;
}
add_filter( 'genesis_attr_content', 'vm_attributes_content' );

I tested and found that is_taxonomy() is applying the desired filters to the archives but I am aware that this function has been deprecated so I'm not sure what will replace it.

What is the alternative?

ragesoul on "getting custom template pages"

$
0
0

hello,
im making custom taxonomy and i want for each taxonomy type to be able to select template file.
For categories im getting good result, when i select custom template file , adding to body_class hook with name exmpl : category-template-1.php and its displayed correctly
wanna do same thing with taxonomy exmpl i want taxonomy-template-1.php file to be loaded but it keeps pointing to taxonomy.php
i know about taxonomy-{slug}.php and similar things but thats not what i want.
thanx in advance

tommydamani on "Keep YouTube video unsharable?"

$
0
0

How to i embed a YouTube video into my WP blog & have it so that no one can click the video and then go to YouTube, take the link and share that link?

I'm running a membership based website you see and i need to make sure people don't share my video links.

If not YouTube then is there another way to do what i need?

Viewing all 8245 articles
Browse latest View live




Latest Images